Changeset 9159
- Timestamp:
- 10/02/2019 08:20:39 AM (5 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-customroles/class-helphub-custom-roles.php
r7306 r9159 223 223 if ( empty( $GLOBALS['wp_roles']->is_role( $role ) ) ) { 224 224 $wp_roles->add_role( $role, __( 'HelpHub Editor', 'wporg-forums' ), $default_editorroles->capabilities ); 225 226 $wp_roles->add_cap( $role, 'edit_theme_options' );227 225 } 228 226 } -
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/helphub-manager/class-helphub-manager.php
r7958 r9159 182 182 /* 183 183 * Only allow changing roles of users that are HelpHub related, or do not already hold 184 * a role within the user hierarchy as is.184 * a role within the user hierarchy with sufficient capabilities to modify HelpHub articles. 185 185 * 186 186 * This is to prevent overriding users with higher capabilities altogether. 187 187 */ 188 if ( ! empty( $user_role ) && ! isset( $helphub_roles[ $user_role ] ) ) {188 if ( ! empty( $user_role ) && ! isset( $helphub_roles[ $user_role ] ) && user_can( bbp_get_displayed_user_id(), 'edit_posts' ) ) { 189 189 return; 190 190 }
Note: See TracChangeset
for help on using the changeset viewer.