diff options
author | Simon Rettberg | 2018-04-19 16:12:57 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-04-19 16:12:57 +0200 |
commit | 8fd7ce430269d2999dcba3696ab6557fa59a4e94 (patch) | |
tree | b6819fdb7d98ee0cbbfc0af4df0422e4104b602a | |
parent | [statistics] Fix select items in filterbox, tweak ID44 size grouping (diff) | |
download | slx-admin-8fd7ce430269d2999dcba3696ab6557fa59a4e94.tar.gz slx-admin-8fd7ce430269d2999dcba3696ab6557fa59a4e94.tar.xz slx-admin-8fd7ce430269d2999dcba3696ab6557fa59a4e94.zip |
[adduser] Assign first created user role "Super-Admin"
-rw-r--r-- | modules-available/adduser/page.inc.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules-available/adduser/page.inc.php b/modules-available/adduser/page.inc.php index e95cb78a..a841f251 100644 --- a/modules-available/adduser/page.inc.php +++ b/modules-available/adduser/page.inc.php @@ -56,6 +56,8 @@ class Page_AddUser extends Page if ($ret !== false) { EventLog::clear(); } + // same for permissionmanager + Database::exec("INSERT INTO `role_x_user` (userid, roleid) VALUES (:id, 1)", ['id' => $id], true); EventLog::info('Created first user ' . $login); } else { EventLog::info(User::getName() . ' created user ' . $login); |