src/EntityDescriptor/User/AbstractUser.php
public function canDo($action, $object=null) {
		return $this->equals($object) || ( $this->checkPerm($action) && ( !($object instanceof AbstractUser) || $this->canAlter($object) ) );
	}
public function canDo($action, $object=null) {
		return $this->equals($object) || ( $this->checkPerm($action) && ( !($object instanceof AbstractUser) || $this->canAlter($object) ) );
	}
public function canDo ( $ action , $ object = null ) { return $ this -> equals ( $ object ) || ( $ this -> checkPerm ( $ action ) && ( ! ( $ object instanceof AbstractUser ) || $ this -> canAlter ( $ object ) ) ) ; }
Check if this user can affect data on the given user

@param string $action The action to look for
@param object $object The object we want to edit
@return boolean True if this user has enough access level to alter $object (or he is altering himself)
@see loggedCanDo()
@see canAlter()

Check if this user can affect $object.
Check if this user can affect data on the given user