src/User/User.php
public function hasPermissionLike($match)
    {
        if ($this->isAdmin()) {
            return true;
        }

        if (is_null($this->permissions)) {
            $this->permissions = $this->getPermissions();
        }

        foreach ($this->permissions as $permission) {
            if (substr($permission, -strlen($match)) === $match) {
                return true;
            }
        }

        return false;
    }
public function hasPermissionLike($match)
    {
        if ($this->isAdmin()) {
            return true;
        }

        if (is_null($this->permissions)) {
            $this->permissions = $this->getPermissions();
        }

        foreach ($this->permissions as $permission) {
            if (substr($permission, -strlen($match)) === $match) {
                return true;
            }
        }

        return false;
    }
public function hasPermissionLike ( $ match ) { if ( $ this -> isAdmin ( ) ) { return true ; } if ( is_null ( $ this -> permissions ) ) { $ this -> permissions = $ this -> getPermissions ( ) ; } foreach ( $ this -> permissions as $ permission ) { if ( substr ( $ permission , - strlen ( $ match ) ) === $ match ) { return true ; } } return false ; }
Check whether the user has a permission that is like the given string,
based on their groups.

@param string $match
@return bool
Check whether the user has a permission that is like the given string based on their groups .