Questions: Fix permissions migration

This commit is contained in:
Igor Scheller 2020-12-20 19:53:15 +01:00
parent b5c974b9e3
commit 48e1d9f5f8
1 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ class CreateQuestionsPermissions extends Migration
]);
$userGroup = -20;
$shiftCoordinatorGroup = -60;
$shiftCoordinatorGroup = -40;
$addId = $db->table('Privileges')->where('name', 'question.add')->first()->id;
$editId = $db->table('Privileges')->where('name', 'question.edit')->first()->id;
$db->table('GroupPrivileges')->insert([
@ -52,8 +52,8 @@ class CreateQuestionsPermissions extends Migration
['name' => 'admin_questions', 'desc' => 'Answer user\'s questions'],
]);
$userGroup = -20;
$shiftCoordinatorGroup = -60;
$bureaucratGroup = -40;
$shiftCoordinatorGroup = -40;
$bureaucratGroup = -60;
$userQuestionsId = $db->table('Privileges')->where('name', 'user_questions')->first()->id;
$adminQuestionsId = $db->table('Privileges')->where('name', 'admin_questions')->first()->id;
$db->table('GroupPrivileges')->insert([