Forum Replies Created
-
AuthorPosts
-
thebigbanikParticipant
Thanks, I have already done all these. My problem is with the CPTs. If I Update Network, user roles loses their capabilities of the CPTS in each subsite because as you said it overrides the settings. I did create the exact same CPTs in the main site and now they appeared in the menu but posts are missing and I cannot create a new one. So, I deleted the CPTs from the main site and left it only in the subsite. But now, even if I have granted access to the capabilities of these CPTS, the user role has no acces, I get the message “Sorry, you cannot edit”. But I have checked the edit_prosforas, edit_others_prosforas, read_prosforas etc, everything that is related to this CPT. Did I mess up everything? It is a very complicating thing Roles and Capabilities.
thebigbanikParticipantReplying to my post, I created the same CPTs in the main site with the same Capability Type as in the subsite and it worked. I just need you to verify that this is the right way. Thanks.
thebigbanikParticipantHi, thank you for the reply but I am not sure I uderstand correctly. All I need is every user who will be a subscriber, he can be an administrator of his subsite and have no access to other subsites. I will split it in steps.
MAIN SITE: Sells subscriptions (BASIC & ADVANCED)
USER A: Buys subscription BASIC (gets the BUSINESS MANAGER role)
USER B: Buys subscription ADVANCED (gets the BUSINESS MANAGER role)
At the moment users are just subscribers with the BUSINESS MANAGER role and can edit their custom page in the main site.
MAIN SITE: Creates a SITE A and makes USER A the administrator of SITE A (additional user role BASIC MANAGER)
MAIN SITE: Creates a SITE B and makes USER B the administrator of SITE B (additional user role ADVANCED MANAGER)
In conclusion, both users have the BUSINESS MANAGER ROLE and their extra role and both are administrators on each sub site. Can USER A login to SITE B? In the users list of each subsite there are only the super admin and each administrator, USER A on SITE A and USER B on SITE B. Since USER A is not listed in the SITE B user list, is it possible to login with its credentials? I don’t want that. Thanks, I hope it is not complicated.thebigbanikParticipantHi Vladimir, I use the CPT UI plugin to create 3 custom post types BLOG, PROGRAMS and PERSONEL. In each custom post I have set accordingly “blog”, “programs” and “personel” as Capability type. Then in user role editor I have created capabilities for each type (create_blog, edit_blog, read_blog, delete_blog, publish_blog) and so on for programs and personel. If a user role has all this new types enabled he can see only the blog CPT in the admin menu. The other 2 capabilities seams to not work dispite that I have already enable them. BUT, if in the CPT UI “PROGRAMS”, I change the Capability type to “blog” then the user can see the PROGRAMS in the admin menu. I am not sure if there is something else that I have to set. (Of course “Force custom post types to use their own capabilities” is enabled from the beggining). Thank you for your time in advanced.
-
AuthorPosts