While I have full capablities of this plugin available to me, even assigning another user the WordPress role of administrator is not working. I’m trying to give other users the ability to create their own posts of custom code or edit the ones I have created.
I deactivated all other plugins, and it didn’t make any difference. There are no items in my /wp-content/mu-plugins/ folder. I have installed the Members plugin, made myself an Administrator, and assigned myself all capabilities. When I hover any custom code item, I see Edit | Trash | Deactivate below it. But when I assign all Custom CSS JS capabilities to someone else and sign in as that person, I see only Deactivate. And when I try to publish a new item, WordPress replies “Sorry, you are not allowed to edit this post.” Same problems as before.
I thought the capabilities can be assigned only to a role, not to a user. If I’m wrong, then can you give me detailed instructions on how to assign capabilities to a user with the Members plugin?
If you assign the “Web Designer” role to the “someone else”, is the error still showing up?
The “someone else” would, in a real-life situation would have the Editor role. When that didn’t work in my testing, I made them an Administrator, with all CCJ privleges, just like me, but that still didn’t work. I have been using the User Role Editor plugin, which is similar to Members in that you can create custom roles, except that it also allows you to assign individual capabilities for augmenting any role. I have deactivated this plugin while I’m testing with Members. I want to read the Members documentation to see if there is some way to add capabilities independent of a user’s role, because it doesn’t look that way right now.
I do not see Web Designer as one of the default roles in Members, but I was finally able to make my test account have CCJ capabilities even when they are not granted or even when they’re denied – by making my test account a super admin, as I am in my webmaster’s account.
Please verify that non-superadmins in a multisite can’t have CCJ capabiities and if there is a solution.
The Simple Custom CSS and JS plugin uses the normal WordPress Roles and Capabilities system. If you read through the article you’ll notice that the Administrator capabilities are different for a single-site and for a multi-site installation. More precisely:
Only Administrators of single site installations have the following capabilities. In Multisite, only the Super Admin has these abilities: … edit_users, add_users, create_users, delete_users …
I’m afraid there is no fix for the issue. The user’s capabilities can be added only by a Super Admin because only a Super Admin has the “edit_users” capabilities. This is simply how the WordPress works.
Viewing 7 replies - 1 through 7 (of 7 total)
The topic ‘Can’t assign capabilities to another user with Simple Custom CSS and JS PRO’ is closed to new replies.