diff options
-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); |