src/Symbb/Core/ForumBundle/Security/Authorization/ForumVoter.php
public function getAccessSets()
    {

        $default = array();

        $guest = array(
            self::VIEW
        );

        $user = array_merge($guest,
            array(
                self::CREATE_POST,
                self::CREATE_TOPIC
            )
        );
        
        $userFull = array_merge($user,
            array(
                self::UPLOAD_FILE
            )
        );

        $mod = array_merge($userFull,
            array(
                self::EDIT_POST,
                self::EDIT_TOPIC,
                self::DELETE_POST,
                self::DELETE_TOPIC,
                self::MOVE_POST,
                self::MOVE_TOPIC,
                self::SPLIT_TOPIC,
            )
        );

        return array(
            // no access
            "default_1" => $default,
            // readonly
            "default_2" => $guest,
            // normal
            "default_3" => $user,
            // full (add extension access)
            "default_4" => $userFull,
            // moderator
            "default_5" => $mod
        );
    }
public function getAccessSets()
    {

        $default = array();

        $guest = array(
            self::VIEW
        );

        $user = array_merge($guest,
            array(
                self::CREATE_POST,
                self::CREATE_TOPIC
            )
        );
        
        $userFull = array_merge($user,
            array(
                self::UPLOAD_FILE
            )
        );

        $mod = array_merge($userFull,
            array(
                self::EDIT_POST,
                self::EDIT_TOPIC,
                self::DELETE_POST,
                self::DELETE_TOPIC,
                self::MOVE_POST,
                self::MOVE_TOPIC,
                self::SPLIT_TOPIC,
            )
        );

        return array(
            // no access
            "default_1" => $default,
            // readonly
            "default_2" => $guest,
            // normal
            "default_3" => $user,
            // full (add extension access)
            "default_4" => $userFull,
            // moderator
            "default_5" => $mod
        );
    }
public function getAccessSets ( ) { $ default = array ( ) ; $ guest = array ( self :: VIEW ) ; $ user = array_merge ( $ guest , array ( self :: CREATE_POST , self :: CREATE_TOPIC ) ) ; $ userFull = array_merge ( $ user , array ( self :: UPLOAD_FILE ) ) ; $ mod = array_merge ( $ userFull , array ( self :: EDIT_POST , self :: EDIT_TOPIC , self :: DELETE_POST , self :: DELETE_TOPIC , self :: MOVE_POST , self :: MOVE_TOPIC , self :: SPLIT_TOPIC , ) ) ; return array ( // no access "default_1" => $ default , // readonly "default_2" => $ guest , // normal "default_3" => $ user , // full (add extension access) "default_4" => $ userFull , // moderator "default_5" => $ mod ) ; }
this are the list of default access lists
@return array
this are the list of default access lists