Jump to content

PageListAction Trash only for SuperUsers? Why?


Torsten Baldes
 Share

Recommended Posts

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 by Torsten Baldes
Link to comment
Share on other sites

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...