wip
This commit is contained in:
@@ -7,6 +7,18 @@ use Illuminate\Http\Request;
|
||||
|
||||
trait NovaVisaMasterPaymentOrderItemAuth
|
||||
{
|
||||
/** Create */
|
||||
public static function authorizedToCreate(Request $request)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/** Create */
|
||||
public static function authorizeToCreate(Request $request)
|
||||
{
|
||||
throw_unless(auth()->user()->isMe(), AuthorizationException::class);
|
||||
}
|
||||
|
||||
/** Edit button */
|
||||
public function authorizedToUpdate(Request $request): bool
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user