Hi Richard,
This is the default behaviour. At the moment we allow all logged in user to create gallery.
The behaviour was a result we wanted for BuddyPress.
I do agree that adding a role selection will be a good choice. For now, we do have filters, so If you can tell me which roles should be allowed, I can put some code here.
Thank you
Brajesh
hi Brajesh,
I would say anything above, and including, Contributor, should be able to post. Subscriber should be absolutely blocked from posting as it’s a read-only role. I’m presuming (?) that as soon as a member in BuddyPress is “enabled”, then they get the Contributor (or above) role.
It’s clear that default BuddyPress and MediaPress requirements are for member-only sites, where once users have signed in, they can do nearly anything. However, I need to block my users after they’ve registered until they’ve completed certain tasks. And only then give them write access, this just has to be controllable.
It doesn’t have to be a role either, a check on “can_publish” or somesuch would be fine too. Happy to take some code, if it’s clear enough, and plug it into functions.php, or wherever need be, as required. Thanks for your assistance.
Cheers
R.
hi Brajesh,
I’m not sure how far you’ve gotten with this, but I was thinking about it, and thought this worth mentioning. If you have, or insert, hooks in the right places: (create, edit, delete)-actions and the accompanying buttons/links, then I could write a complementary add-on plugin for MP to check the appropriate privileges. It’s a thought, what do you think?
R.
Hi Richard,
Thank you for the mail. I am sorry, It took me a little longer as I wanted to put a documentation page and some example.
But before that, In case of BuddyPress, even a user without any role can post update and use almost all social functionality.
Now about our current issue, There are extensive hooks available in MediaPress for the above. You can fine tune the control.
Please take a look at this
https://buddydev.com/mediapress/topics/api-guides/disabling-mediapress-selectively-usersgroups-etc/
I have just created it to help with. It allows you to completely turn off MediaPress for the users.
Also, There are extensive hooks to allow you fine grained control over each action(create/edit/upload/delete/view etc)
Please see the mpp-permissions.php for the same
https://github.com/buddydev/mediapress/blob/master/core/mpp-permissions.php
Hope that helps.
Regards
Brajesh
hi Brajesh,
excellent! Fine-grained control is what I’m probably after, but I’ll play with your examples first, before reaching a final decision. MANY thanks for making the documentation, for the existing functionality, so clear, that looks awesome!
Closing 🙂
Cheers
R.