Page 1 of 1

user permissions x3

Posted: 29 Mar 2016, 12:01
by basvanderwal3
Is there a option to ban users from removing the folders 1.index en custom ?
Or can this be made into a option in the permissions?

Because it is the fourth time this month that one of my users deleted the 1.index.
For now none of the users can delete files, but that is not a good solution.

Re: user permissions x3

Posted: 29 Mar 2016, 13:25
by mjau-mjau
You can't set up users so they are limited to a subfolder?

Re: user permissions x3

Posted: 29 Mar 2016, 17:09
by basvanderwal3
No not really. Because they write all the stuff by them self. And therefore they need access to everything.

http://stageline.bs-fotografie.nl is the webadres, everything is in dutch.
This is a coverband that wanted a new site, so i did the setup for them.

If they like it, they buy it.

Re: user permissions x3

Posted: 30 Mar 2016, 00:14
by mjau-mjau
Ok, problem is INDEX is really just a normal page named "index" ... If you want admin users to be able to edit it, then they will be able to edit (and delete) it like any other page ... It seems a bit illogical to hardcode the system to prevent delete for the index page if the user has access to it, as some users may actually want to delete- and recreate it.

Here is some custom CSS you can add, that will hide all delete/move/copy buttons from the index:
Code
tr[data-name="1.index"] .td-button .btn-group, tr[data-name="1.index"] .td-checkbox > input, ul.mtree li[id="menu_1_index"] .mtree-tools, #page_content_1_index .current-folder-btns {
	display: none !important;
}
Create a file panel/custom.css, add the code above. It will automatically be loaded into the panel. Please test it from a user-login ... I am not 100% sure your panel it updated to load this file.

For the next release, I will add some code so that you can add CSS specifically for USERS, that does not affect super-admin.

PS! It could be your users were affected by this bug, which is fixed in pending release:
https://forum.photo.gallery/viewtopic.p ... 12&start=0

Re: user permissions x3

Posted: 02 Apr 2016, 10:33
by basvanderwal3
Thanks, that little piece of CSS did the trick.

I understand your point of view that it's just a normal page, but without that page the site doesn't work.
So in my eyes, it's a little bit special. :wink:

Re: user permissions x3

Posted: 02 Apr 2016, 23:49
by mjau-mjau
Noted.

PS! After next release, you may want to move your custom panel css from panel/custom.css to config/panel.css. It's better to store custom stuff in your config folder, so updating becomes easier, while keeping your customizations.

Re: user permissions x3

Posted: 08 Apr 2016, 14:26
by mjau-mjau
Some improvement for pending release:
Image