src/Searsaw/Drawbridge/models/BridgeRole.php
public function hasPermission($permission)
    {
        $permissions = $this->permissions;
        foreach ($permissions as $permission_obj)
            if ($this->checkPermission($permission, $permission_obj))
                return true;

        return false;
    }
public function hasPermission($permission)
    {
        $permissions = $this->permissions;
        foreach ($permissions as $permission_obj)
            if ($this->checkPermission($permission, $permission_obj))
                return true;

        return false;
    }
public function hasPermission ( $ permission ) { $ permissions = $ this -> permissions ; foreach ( $ permissions as $ permission_obj ) if ( $ this -> checkPermission ( $ permission , $ permission_obj ) ) return true ; return false ; }
Checks to see if a role has a certain permission

@param $permission string|integer|\Searsaw\Drawbridge\Models\BridgePermission The permission to check

@return bool
Checks to see if a role has a certain permission