Torsten Baldes Posted April 13, 2016 Share Posted April 13, 2016 (edited) Today i found out, that only SuperUsers can trash pages via the pagelist action. Users with other roles have to go in the edit mode, check the delete checkbox and save the page. With lots of pages to delete this can get a little bit exhausting. Is there a reason for this behaviour? Can we change this, so that all roles with page-delete-permissions can use this shortcut? Thanks! EDIT: I made a pull request for this feature in the devns branch: https://github.com/ryancramerdesign/ProcessWire/pull/1777 Edited April 13, 2016 by Torsten Baldes Link to comment Share on other sites More sharing options...
LostKobrakai Posted April 13, 2016 Share Posted April 13, 2016 This is intended behavior. As only superusers can use the trash (see it and restore pages) it's actually favorable to not have users accidentally click a trash action button. Link to comment Share on other sites More sharing options...
Torsten Baldes Posted April 13, 2016 Author Share Posted April 13, 2016 Hm, ok. I find it a bit restrictive. If i don't want my editors to delete pages, i don't give them a role which has permission for this. Since they can delete pages anyway, i think this should also be possible from the action list. If they delete something by accident, they won't do it this way a second time and the page can still be recovered from the trash. Maybe we can add a check for new permission ('page-delete-action-list') which allows deleting a page from the page list actions. Something like this: if($this->superuser || $user->hasPermission('page-delete-action-list', $page)) { … } Link to comment Share on other sites More sharing options...
bernhard Posted April 13, 2016 Share Posted April 13, 2016 I know this behaviour and I've accepted it long time ago and thought it was a good solution. Reading your post now (it's not the first time that this topic pops up) I think maybe it would be even better to have the trash button and have an option to "undo/restore" that action for a limited time. That's how Google does it at gmail and I have to admit that I have used this feature not only once Though I also have to say that I think ît has priority 500... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now