Fixed adding custom role with org_id field population.
[timetracker.git] / role_add.php
index c8df24c..cb3d6f4 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,