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__);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,14 +26,18 @@
|
||||
<x-jet-label for="email" value="{{ __('Email') }}"/>
|
||||
<x-jet-input id="email" class="block mt-1 w-full" type="email" name="email" :value="old('email')"
|
||||
required autofocus/>
|
||||
@if(app()->environment())
|
||||
<pre>admin@einundzwanzig.space</pre>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="mt-4">
|
||||
<x-jet-label for="password" value="{{ __('Password') }}"/>
|
||||
<x-jet-input id="password" class="block mt-1 w-full" type="password" name="password" required
|
||||
autocomplete="current-password"/>
|
||||
@if(app()->environment())
|
||||
<pre>1234</pre>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="block mt-4">
|
||||
|
||||
Reference in New Issue
Block a user