src/Security/InheritedPermissions.php
protected function checkDefaultPermissions($type, Member $member = null)
    {
        $defaultPermissions = $this->getDefaultPermissions();
        if (!$defaultPermissions) {
            return false;
        }
        switch ($type) {
            case self::VIEW:
                return $defaultPermissions->canView($member);
            case self::EDIT:
                return $defaultPermissions->canEdit($member);
            case self::DELETE:
                return $defaultPermissions->canDelete($member);
            default:
                return false;
        }
    }
protected function checkDefaultPermissions($type, Member $member = null)
    {
        $defaultPermissions = $this->getDefaultPermissions();
        if (!$defaultPermissions) {
            return false;
        }
        switch ($type) {
            case self::VIEW:
                return $defaultPermissions->canView($member);
            case self::EDIT:
                return $defaultPermissions->canEdit($member);
            case self::DELETE:
                return $defaultPermissions->canDelete($member);
            default:
                return false;
        }
    }
protected function checkDefaultPermissions ( $ type , Member $ member = null ) { $ defaultPermissions = $ this -> getDefaultPermissions ( ) ; if ( ! $ defaultPermissions ) { return false ; } switch ( $ type ) { case self :: VIEW : return $ defaultPermissions -> canView ( $ member ) ; case self :: EDIT : return $ defaultPermissions -> canEdit ( $ member ) ; case self :: DELETE : return $ defaultPermissions -> canDelete ( $ member ) ; default : return false ; } }
Determine default permission for a givion check

@param string $type Method to check
@param Member $member
@return bool
Determine default permission for a givion check