BloomFeed Addons v0.22
This commit is contained in:
1 parent
c4d1308497
commit
d58f2195f5
22 files changed
+832
-7
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
use App\Models\Notifier;
|
||||
use App\Models\User;
|
||||
|
||||
class NotifierPolicy
|
||||
{
|
||||
public function update(User $user, Notifier $notifier): bool
|
||||
{
|
||||
return $user->id === $notifier->user_id;
|
||||
}
|
||||
|
||||
public function delete(User $user, Notifier $notifier): bool
|
||||
{
|
||||
return $user->id === $notifier->user_id;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user