Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add capibilities to a role


  • AJD
    Participant

    @ajd

    I’m looking for a simple way to to add two capabilities:’delete_topics’ and
    ‘delete_replies’ to the user role ‘participant’.

    I have found a couple plugins to manage all capabilities, but that seems like overkill.

    thanks.

    WP: 3.8
    bbPress: Version 2.5.2

Viewing 2 replies - 1 through 2 (of 2 total)

  • AJD
    Participant

    @ajd

    I have tried the plugin that is supposed to do this, but it didn’t work. In frustration I edited the core file: includes/core/capabilities.php But sadly nothing has changed, participants still can not delete their own topics. Clearly I’m missing something.

    
    		// Participant/Default
    		case bbp_get_participant_role() :
    		default :
    			$caps = array(
    
    				// Primary caps
    				'spectate'              => true,
    				'participate'           => true,
    
    				// Forum caps
    				'read_private_forums'   => true,
    
    				// Topic caps
    				'publish_topics'        => true,
    				'edit_topics'           => true,
                                    // manually added this
    				'delete_topics'         => true,
    
    				// Reply caps
    				'publish_replies'       => true,
    				'edit_replies'          => true,
                                    // manually added this
    				'delete_replies'        => true,
    
    				// Topic tag caps
    				'assign_topic_tags'     => true,
    			);

    fyreus
    Participant

    @fyreus

    Where is this section located?

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.