src/ChangeSetItem.php
public function can($perm, $member = null, $context = [])
    {
        if (!$member) {
            $member = Security::getCurrentUser();
        }

        // Allow extensions to bypass default permissions, but only if
        // each change can be individually published.
        $extended = $this->extendedCan($perm, $member, $context);
        if ($extended !== null) {
            return $extended;
        }

        // Default permissions
        return (bool)Permission::checkMember($member, ChangeSet::config()->get('required_permission'));
    }
public function can($perm, $member = null, $context = [])
    {
        if (!$member) {
            $member = Security::getCurrentUser();
        }

        // Allow extensions to bypass default permissions, but only if
        // each change can be individually published.
        $extended = $this->extendedCan($perm, $member, $context);
        if ($extended !== null) {
            return $extended;
        }

        // Default permissions
        return (bool)Permission::checkMember($member, ChangeSet::config()->get('required_permission'));
    }
public function can ( $ perm , $ member = null , $ context = [ ] ) { if ( ! $ member ) { $ member = Security :: getCurrentUser ( ) ; } // Allow extensions to bypass default permissions, but only if // each change can be individually published. $ extended = $ this -> extendedCan ( $ perm , $ member , $ context ) ; if ( $ extended !== null ) { return $ extended ; } // Default permissions return ( bool ) Permission :: checkMember ( $ member , ChangeSet :: config ( ) -> get ( 'required_permission' ) ) ; }
Default permissions for this ChangeSetItem

@param string $perm
@param Member $member
@param array $context
@return bool
Default permissions for this ChangeSetItem