]> wagnertech.de Git - timetracker.git/blobdiff - role_add.php
Fixed adding custom role with org_id field population.
[timetracker.git] / role_add.php
index c8df24c732a09aec6cb5e24273e867a90160c1dd..cb3d6f40708a6b34d94f112518aee8989495767f 100644 (file)
@@ -63,6 +63,7 @@ if ($request->isPost()) {
         // Insert a role with default user rights.
         if (ttRoleHelper::insert(array(
           'group_id' => $user->group_id,
+          'org_id' => $user->org_id,
           'name' => $cl_name,
           'rank' => $cl_rank,
           'description' => $cl_description,