mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
policy update
This commit is contained in:
@@ -41,7 +41,7 @@ class LibraryPolicy extends BasePolicy
|
||||
*/
|
||||
public function create(User $user)
|
||||
{
|
||||
return true;
|
||||
return $user->can((new \ReflectionClass($this))->getShortName().'.'.__FUNCTION__);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user