From 982854d5c643ba2f16dbaf9e387ab56c9383624f Mon Sep 17 00:00:00 2001 From: Miguel N Date: Thu, 10 Sep 2020 22:47:51 +0100 Subject: [PATCH] RSM-25 add relevant permisisons to teams --- .idea/hrm-mcserver.iml | 1 + .idea/php.xml | 1 + database/seeds/TeamSeeder.php | 50 +++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 database/seeds/TeamSeeder.php diff --git a/.idea/hrm-mcserver.iml b/.idea/hrm-mcserver.iml index bb20d72..1d4160c 100644 --- a/.idea/hrm-mcserver.iml +++ b/.idea/hrm-mcserver.iml @@ -44,6 +44,7 @@ + diff --git a/.idea/php.xml b/.idea/php.xml index afaedbf..9cee5da 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -141,6 +141,7 @@ + diff --git a/database/seeds/TeamSeeder.php b/database/seeds/TeamSeeder.php new file mode 100644 index 0000000..9353dad --- /dev/null +++ b/database/seeds/TeamSeeder.php @@ -0,0 +1,50 @@ + 'teams.admin.create', + ]); + Permission::create([ + 'name' => 'teams.admin.delete', + ]); + Permission::create([ + 'name' => 'teams.user.join', + ]); + Permission::create([ + 'name' => 'teams.user.leave', + ]); + Permission::create([ + 'name' => 'teams.admin.vacancies.assign', + ]); + Permission::create([ + 'name' => 'teams.admin.vacancies.unassign', + ]); + Permission::create([ + 'name' => 'teams.admin.applications.changeteam', + ]); + Permission::create([ + 'name' => 'teams.members.appointment.schedule', + ]); + Permission::create([ + 'name' => 'teams.members.appointment.deleteappointment', + ]); + Permission::create([ + 'name' => 'teams.members.groupchat', + ]); + + Permission::create([ + 'name' => 'chat.use', + ]); + } +}