| 1 | <?php  | 
            ||
| 23 | class ManageProfileRule extends Rule  | 
            ||
| 24 | { | 
            ||
| 25 | public $name = 'canManageProfile';  | 
            ||
| 26 | |||
| 27 | /**  | 
            ||
| 28 | * Executes the rule.  | 
            ||
| 29 | *  | 
            ||
| 30 | * @param string|User $user the user GUID. This should be either a GUID string representing  | 
            ||
| 31 | * the unique identifier of a user or a User instance. See [[\rhosocial\user\User::guid]].  | 
            ||
| 32 | * @param ManageProfile $item  | 
            ||
| 33 | * @param array $params parameters passed to [[CheckAccessInterface::checkAccess()]].  | 
            ||
| 34 | * @return bool a value indicating whether the rule permits the auth item it is associated with.  | 
            ||
| 35 | */  | 
            ||
| 36 | public function execute($user, $item, $params)  | 
            ||
| 40 | }  | 
            ||
| 41 |