CanApprove
in package
implements
PolicyRuleInterface
Uses
CheckModeratorSettingTrait
Class CanApprove.
Tags
Table of Contents
Interfaces
- PolicyRuleInterface
- Interface PolicyCheckInterface Check by function or policy handler.
Methods
- check() : bool|null
- This method invoked by PolicyGate::check.
- checkModeratorSetting() : bool
Methods
check()
This method invoked by PolicyGate::check.
public
check(string $entityType, User $user, mixed $resource[, mixed $newValue = null ]) : bool|null
Parameters
- $entityType : string
- $user : User
- $resource : mixed
- $newValue : mixed = null
Return values
bool|nullcheckModeratorSetting()
public
checkModeratorSetting(User $user, User $owner, string $settingName) : bool