mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
createdBy fields added
This commit is contained in:
@@ -16,7 +16,7 @@ class BasePolicy
|
||||
*/
|
||||
public function before(User $user, $ability)
|
||||
{
|
||||
if ($user->hasRole('super-admin') || app()->environment('local')) {
|
||||
if ($user->hasRole('super-admin') || config('app.super-admin')) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user