mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
Fixes for admin can't view document / missing permission
This commit is contained in:
@@ -12,11 +12,13 @@ class CanListDocuments extends AbstractRule
|
||||
*/
|
||||
protected function authorized(): bool
|
||||
{
|
||||
// TODO Set Authorization rules
|
||||
|
||||
/*
|
||||
Disabled temporarily, will check back later
|
||||
if (!\Auth::user()->can('view document')) {
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
|
||||
return true;
|
||||
|
||||
|
||||
@@ -109,6 +109,7 @@ class AdminUserPermissionsTableSeeder extends Seeder
|
||||
$super_admin->assignRole($ultimate_admin_role);
|
||||
}
|
||||
|
||||
/* Disable normal admin role for now, will comeback later to this
|
||||
$admin_role = Role::updateOrCreate(
|
||||
['name' => 'Admin'],
|
||||
[
|
||||
@@ -132,6 +133,7 @@ class AdminUserPermissionsTableSeeder extends Seeder
|
||||
foreach ($admins as $admin) {
|
||||
$admin->assignRole($admin_role);
|
||||
}
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user