apeisa Posted January 5, 2013 Posted January 5, 2013 I just released a new module: Trashman. It adds new admin page which allows users without superuser role to view and restore pages. Grab it while it's hot: https://github.com/apeisa/Trashman Few screenshots: 11
Pete Posted January 6, 2013 Posted January 6, 2013 This sounds great. How does it work with permissions though? Does it let everyone with admin access see and restore pages regardless or is it role-based?
apeisa Posted January 6, 2013 Author Posted January 6, 2013 Permission based, so only the roles that have trashman permission are allowed.
evanmcd Posted April 6, 2013 Posted April 6, 2013 This has been super helpful on one project, but I can't seem to get it working on another. Using PW 2.3, I install the module, add the permissions for a role, trash a page, then go to the trashman page. Nothing shows up. The other site I've got it working on is 2.2.9.2, could that make the different? Thanks.
apeisa Posted April 6, 2013 Author Posted April 6, 2013 It doesn't show pages that were moved to thrash before it was installed. This might be the case here?
apeisa Posted April 6, 2013 Author Posted April 6, 2013 Ah, sorry read your post badly. Can you check the db table if it records the thrashing? Also is the watchdog installed?
evanmcd Posted May 29, 2013 Posted May 29, 2013 Hi again, sorry for the delay on this. Just getting back into the sites that are using the module. In the meantime, I've got the module installed and running fine on another site using 2.3, so compatibility with that version isn't the issue. Tried installing and re-installing, but no luck. Deleted a file, but still nothing showing in the Trashman list. I do see the entry in the ProcessTrashman table, though. And, yes, I do see the Watchdog module installed.
apeisa Posted May 29, 2013 Author Posted May 29, 2013 Evan, you mention "deleted a file"? Trashman doesn't care about files, just pages. Also - can you check the trashman table, does it record removed pages there?
evanmcd Posted May 29, 2013 Posted May 29, 2013 Ack, sorry, bad terminology. I deleted a Page, not a file. And yes the ProcessTrashman table has the deleted entry in it. Thx.
apeisa Posted May 30, 2013 Author Posted May 30, 2013 Without looking the code: is server time good and matches with timezone in config.php? And if you play with start date and end date do you see it somehow?
evanmcd Posted May 30, 2013 Posted May 30, 2013 Hi, timezone is correct, but the server time is 45 min ahead. The time on the server that has the site on which Trashman is working is in synch. Could this be the issue? If so, given that I may not be able to change the server time, is there anything else you'd suggest? Thx.
apeisa Posted May 31, 2013 Author Posted May 31, 2013 And if you play with start date and end date do you see it somehow? Did you try that? If possible, pm me admin credentials and also data that there is in trashman-table and I take a look.
evanmcd Posted June 5, 2013 Posted June 5, 2013 Hi, just tried fiddling with the dates in the ProcessTrashman table, but didn't have any luck. Still nothing showing up. Think I'll just provide admin level access to the role needing to get access to the trash for now. If you have any more ideas, please do let me know. Thanks!
apeisa Posted June 6, 2013 Author Posted June 6, 2013 It's hard to say. If you can provide me a way to code, I am happy to take a look.
evanmcd Posted June 6, 2013 Posted June 6, 2013 Hi apeisa, I've messaged you with the code and database so you can (if you have time) set it up locally to test. I forgot to provide you with the admin login I created for you, though. It's: apeisa Vihti2013 The admin is located at /contest-admin/ Let me know if there's anything I can do to help. Thanks.
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