class AnnotationAssistanceRequestPolicy

Traits

HandlesAuthorization

Methods

bool|null
before(User $user, string $ability)

Intercept all checks.

bool
access(User $user, AnnotationAssistanceRequest $request)

Determine if the given assistance request can be accessed by the user.

bool
destroy(User $user, AnnotationAssistanceRequest $request)

Determine if the given assistance request can be deleted by the user.

Details

at line 20
bool|null before(User $user, string $ability)

Intercept all checks.

Parameters

User $user
string $ability

Return Value

bool|null

at line 34
bool access(User $user, AnnotationAssistanceRequest $request)

Determine if the given assistance request can be accessed by the user.

Parameters

User $user
AnnotationAssistanceRequest $request

Return Value

bool

at line 46
bool destroy(User $user, AnnotationAssistanceRequest $request)

Determine if the given assistance request can be deleted by the user.

Parameters

User $user
AnnotationAssistanceRequest $request

Return Value

bool