2124 pointsLike some sort of WPMU DEV God"Mindblowingly helpful memberLifetime member
Ovidiu
Member
—
25th January 2012 (4 months ago)
I am busy implementing Marketpress on a client's site and he would like to have a dedicated login for a shop assistent to update/add new products and change stuff.
I had a look at roles and capabilities and it seems Marketpress doesn't add any or am I missing them?
So basically I'd like a particular user to only have access to the Marketpress menu to add / remove / edit products but not to the base settings like currency, shipping etc.
Is there any way to do this right now?
If not, are you planning on adding some capabilities into your plugin anytime soon?
I am busy implementing Marketpress on a client's site and he would like to have a dedicated login for a shop assistent to update/add new products and change stuff.
I had a look at roles and capabilities and it seems Marketpress doesn't add any or am I missing them?
So basically I'd like a particular user to only have access to the Marketpress menu to add / remove / edit products but not to the base settings like currency, shipping etc.
Is there any way to do this right now?
If not, are you planning on adding some capabilities into your plugin anytime soon?
If I give a person i.e. the edit_posts capability he can edit all sorts of posts, not only the marketpress custom post type... Of course in the meantime I will use i.e. Adminimize and hide all menus I don't want them to be able to access...
Now if Marketpress had its own capabilities I could precisely allow a person to only access those menus :-)
Marking this as unresolved until I know if anything like this can/will be done in the future - if it makes sense to you guys, maybe the dev of the plugin or someone else using it extensively can pitch in with some ideas/suggestions too?
Thanks but that is about the same that the Adminimize plugin does. Its a nice workaround though.
@Phil: I am not going to mark this unresolved again, but would you mind checking this for me please?
Marking this as unresolved until I know if anything like this can/will be done in the future - if it makes sense to you guys, maybe the dev of the plugin or someone else using it extensively can pitch in with some ideas/suggestions too?
sorry I wasn't very clear, the webshop user actually doesn't even see the Marketpress Menu but he sees the Posts menu? kinda weird: http://screencast.com/t/8tAKLlmO0zQw
nope. that is why I showed you my list of active plugins. And even when I was using Adminimize I hid all other stuff and left the Marketpress menu alone.
Can you try and duplicate it? Create a new role with User Role Editor and give the same capabilities you can see in my screen shot, if you have a spare minute.
Ah-ha - simple really. You just need to give webshop edit_pages capabilities, not edit_posts. My apologies!
can someone explain the logic behind this?
I need to have edit_pages caps to be able to edit a custom post type?
Just confused here. I was going to hide some items on the edit products page for this particualr user, i.e. the ability to change the slug. Now do I need to remove that capability or that particular item from the "write page" or "write post" pane?
I've almost managed to achieve what I need to achieve using user role and marketpress.
Unfortunately the Sellers cannot select a category. They can, however, select a category when Edit Post role is selected. Unfortunately this opens up one more area of the dashboard I don't want the seller to have access to.
thanks. feel free to re-open this thread, I think I tried the WPMUDEV team's patience enough ;-)
and here I was thinking I was the only one with eccentric wishes :-)
Not eccentric at all when wanting to ensure a site is safe. The next challenge is to make sure that Sellers cannot access each other's files they may be selling. I think this may be part of the solution.
7026 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Lead Developer
—
31st January 2012 (3 months ago)
#
You can customize the permissions if you would like via the filter 'mp_register_post_type'. The default uses to page permissions for maximum compatibility across installs.
Responses (20)
Sales & Support Pro — 25th January 2012 (3 months ago) #
Hiya!
MarketPress simply uses the same as posts. So you might want to try Author or Editor roles to achieve that.
Thanks,
Phil
Member — 25th January 2012 (3 months ago) #
Unfortunately that doesn't help me at all.
If I give a person i.e. the edit_posts capability he can edit all sorts of posts, not only the marketpress custom post type... Of course in the meantime I will use i.e. Adminimize and hide all menus I don't want them to be able to access...
Now if Marketpress had its own capabilities I could precisely allow a person to only access those menus :-)
Marking this as unresolved until I know if anything like this can/will be done in the future - if it makes sense to you guys, maybe the dev of the plugin or someone else using it extensively can pitch in with some ideas/suggestions too?
Sales & Support Pro — 25th January 2012 (3 months ago) #
If you were to use Admin Menu Editor instead, that allows you to hide pages based on user role.
In that case it would behave as if they did not posses the capabilities required to edit posts but do possess edit products capabilities...
Member — 25th January 2012 (3 months ago) #
Thanks but that is about the same that the Adminimize plugin does. Its a nice workaround though.
@Phil: I am not going to mark this unresolved again, but would you mind checking this for me please?
Member — 26th January 2012 (3 months ago) #
Can I ask a very related question within this same thread please?
I created a specific user rol called webshop. I want users with this role to be only allowed to add/edit products but I can't get it to work.
an EDITOR can use market press, he has these capabilities: http://screencast.com/t/Av2tgB8oHalK
a user with the WEBSHOP role cannot access Marketpress: http://screencast.com/t/0slMTDvEv3
which one of the capabilities do you think I need to add to the WEBSHOP role fix this?
Sales & Support Pro — 26th January 2012 (3 months ago) #
Did the webshop user create the products? If not, you'll need to give them the "Edit others posts" capability as well.
Thanks
Member — 26th January 2012 (3 months ago) #
sorry I wasn't very clear, the webshop user actually doesn't even see the Marketpress Menu but he sees the Posts menu? kinda weird: http://screencast.com/t/8tAKLlmO0zQw
here are all active plugins: http://screencast.com/t/QUA8PWDbj
the only plugin concerning users/right/etc is user role editor
Member — 26th January 2012 (3 months ago) #
How do you get the Marketpress importer ?
Sales & Support Pro — 26th January 2012 (3 months ago) #
And you're not hiding the MarketPress menu item using Adminimize?
Member — 26th January 2012 (3 months ago) #
you mean the tab in the marketpress options called Importers? Thats an empty page saying: coming soon.
But try this: http://premium.wpmudev.org/forums/topic/how-to-import-products-to-marketpress#post-170143
Member — 26th January 2012 (3 months ago) #
@Phil:
nope. that is why I showed you my list of active plugins. And even when I was using Adminimize I hid all other stuff and left the Marketpress menu alone.
Can you try and duplicate it? Create a new role with User Role Editor and give the same capabilities you can see in my screen shot, if you have a spare minute.
Sales & Support Pro — 26th January 2012 (3 months ago) #
Ah-ha - simple really. You just need to give webshop edit_pages capabilities, not edit_posts. My apologies!
Member — 26th January 2012 (3 months ago) #
oh seems to work.
so can I remove all add/edit/delete/publish posts capabilities?
Sales & Support Pro — 27th January 2012 (3 months ago) #
Yeah, you should be able to..
Member — 27th January 2012 (3 months ago) #
thx, all works perfect now :-)
Member — 29th January 2012 (3 months ago) #
can someone explain the logic behind this?
I need to have edit_pages caps to be able to edit a custom post type?
Just confused here. I was going to hide some items on the edit products page for this particualr user, i.e. the ability to change the slug. Now do I need to remove that capability or that particular item from the "write page" or "write post" pane?
Member — 31st January 2012 (3 months ago) #
Hi Ovidiu
Thanks for driving this thread. Very useful.
I've almost managed to achieve what I need to achieve using user role and marketpress.
Unfortunately the Sellers cannot select a category. They can, however, select a category when Edit Post role is selected. Unfortunately this opens up one more area of the dashboard I don't want the seller to have access to.
+1 to marketpress having its own capabilities
Member — 31st January 2012 (3 months ago) #
thanks. feel free to re-open this thread, I think I tried the WPMUDEV team's patience enough ;-)
and here I was thinking I was the only one with eccentric wishes :-)
Member — 31st January 2012 (3 months ago) #
Not eccentric at all when wanting to ensure a site is safe. The next challenge is to make sure that Sellers cannot access each other's files they may be selling. I think this may be part of the solution.
http://wordpress.org/support/topic/i-only-need-one-feature-from-role-scoper-limit-users-to-their-own-media-files
Lead Developer — 31st January 2012 (3 months ago) #
You can customize the permissions if you would like via the filter 'mp_register_post_type'. The default uses to page permissions for maximum compatibility across installs.
Become a member