Is there any way to create groups that can access support

Is there any way to create groups that can access support tickets? I have a company with many employees. I want them to be able to respond to tickets made by another employee.

    Ignacio

    Hi @Giovanni

    Not for the moment. Permissions system will change in 2.3 though (no ETA yet, we're still working on 2.2)

    You can use custom code for it. Imagine that you want those users (with IDs 5, 3 and 10) to update/delete/insert tickets. Just put the following code in a new file, let's say, giovanni-support-hooks.php and upload it to wp-content/mu-plugins (create it if it does not exist):

    <?php
    
    add_filter( 'support_system_user_can', 'giovanni_add_staff_users', 50, 3 );
    function giovanni_add_staff_users( $user_can, $user_id, $cap ) {
    	$user_ids = array( 5, 3, 10 );
    
    	if ( in_array( $user_id, $user_ids ) ) {
    		$allowed_caps = array(
    			'insert_ticket',
    			'read_ticket',
    			'insert_reply',
    			'open_ticket',
    			'close_ticket',
    			'update_ticket'
    		);	
    
    		if ( in_array( $cap, $allowed_caps ) )
    			$user_can = true;
    	}	
    
    	return $user_can;
    }

    That should make the trick.

    Regards.
    Ignacio.