Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VersionX CMP, tabs permissions #68

Open
minagerges opened this issue Jul 29, 2014 · 5 comments
Open

VersionX CMP, tabs permissions #68

minagerges opened this issue Jul 29, 2014 · 5 comments

Comments

@minagerges
Copy link

minagerges commented Jul 29, 2014

Check if user has permissions to view specific element before loading its tab in CMP. I've made some modification and have this option for one of my installation.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@Mark-H
Copy link
Member

Mark-H commented Jul 29, 2014

If you've done this before, mind sharing the code? ;)
Op 29 jul. 2014 22:27 schreef "minagerges" [email protected]:

Check if user has permissions to view specific element before loading its
tab in CMP. I've made some modification and have this option for one of my
installation.


Reply to this email directly or view it on GitHub
#68.

@minagerges
Copy link
Author

Sure. I will have access to that environment next week [On vacation on the country side at the moment ;) ]
What i did was modifying index.php and rebuilt action.index.js from there; according to user permissions i output the item (tab).

Also what I did was modifying the context action to work according to user permissions as well.

eg. user right click a version and choose revert, but he has no edit permission on that resource/element then he gets an access denied error. i modified "function revert(array $options = array()" to check edit permission.

Do you want me to trigger another issue for that as well? Can do, but again sharing the code is next week (it's 1 line anyway :) )

And i added delete version functionality in another environment. VersionX is my favourite extra, just it needs more time from you. Before i use it i was using a very basic custom plugin i made which is nothing compared to your great work.

@minagerges
Copy link
Author

Forked.

@exside
Copy link
Contributor

exside commented Mar 14, 2016

+1

@muzzwood
Copy link
Contributor

Permissions would still be a good idea in the latest version for the CMP and object types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants