Moved auditer into a sprinkle of it's own

This commit is contained in:
2022-05-19 16:44:21 +01:00
parent a61231e977
commit a820fb56e0
2 changed files with 0 additions and 12 deletions

View File

@@ -340,13 +340,6 @@ class OrganisationPermissions extends BaseSeed
]);
}
$roleAuditer = Role::where('slug', 'auditer')->first();
if ($roleAuditer) {
$roleAuditer->permissions()->syncWithoutDetaching([
Permission::where('slug', 'uri_activities')->first()->id,
]);
}
$roleUser = Role::where('slug', 'user')->first();
if ($roleUser) {
$roleUser->permissions()->syncWithoutDetaching([

View File

@@ -43,11 +43,6 @@ class OrganisationRoles extends BaseSeed
'name' => 'Organisations Administrator',
'description' => 'This role is meant for "organisation administrators", who can basically do anything related to organisations and their members.',
]),
new Role([
'slug' => 'auditer',
'name' => 'Audit Viewer',
'description' => 'This role is meant for "auditers", who are allowed to view the activity log.',
]),
];
}
}