This commit is contained in:
2024-11-24 15:19:09 +05:00
parent a63df45a84
commit 04a5bb0f2b

View File

@@ -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
{