jonatan Posted October 2, 2020 Posted October 2, 2020 So... I thought (for some stupid reason I can't even recall now no wait now I remember.. I wanted to hide the "Trash" for "editor" role users) that it'd be super duper smart to "Enable access control" for the field "process" on the admin template.... Really really stupid.... Now all I get is: – when I go to mywebsitedomain.com/admin but.... my website domain.com and all its subpages works perfectly fine! So it's ONLY the /admin (processwire) which throws a 503 at me. ??☠️??? S.O.S.
jonatan Posted October 2, 2020 Author Posted October 2, 2020 I just tried restoring the "wire" folder to a previous state... no luck. Didn't change a thing
dragan Posted October 2, 2020 Posted October 2, 2020 A long shot, but... if you open Adminer or phpMyAdmin, what does it show in the table "templates" for id 2? afaik, useRoles should be set to 1, and noGlobal set to 1 too (the rest shouldn't matter). Replacing the wire folder won't help, cause the changes you made are stored in the DB (and even if it would be stored to the file-system, it would under site/).
dragan Posted October 2, 2020 Posted October 2, 2020 2 minutes ago, jonatan said: HEUREKA!!!!! Well, care to share the solution?
jonatan Posted October 2, 2020 Author Posted October 2, 2020 So.. for anyone else being as stupid as I: VERY luckily I had a previous .sql database export from when I moved from dev to prod site! So I exported the current site's db and compared the two .sql files. And I noticed this difference. INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES (2, 2, 1, NULL) I changed '{\"flagsAdd\":32}' back to NULL. Anddd ... drumrolll..... Back was my beautiful AdminThemeBoss dearly beloved and missed PW adminarea loginscreen! (Sorry for the inconvience and S.O.S signals... But you know.. maybe someone else will be as idiotic as me one day and find this useful?) 1
jonatan Posted October 2, 2020 Author Posted October 2, 2020 8 minutes ago, dragan said: A long shot, but... if you open Adminer or phpMyAdmin, what does it show in the table "templates" for id 2? afaik, useRoles should be set to 1, and noGlobal set to 1 too (the rest shouldn't matter). Replacing the wire folder won't help, cause the changes you made are stored in the DB (and even if it would be stored to the file-system, it would under site/). But thanks a thousand times though for the extremely quick S.O.S response @dragan !!! ❤️ Lots of love from here! 1
jonatan Posted October 2, 2020 Author Posted October 2, 2020 So I guess I learned now that {"flagsAdd":32} in the "field groups_fields" table's "data" column means Enable access control...
Robin S Posted October 2, 2020 Posted October 2, 2020 3 hours ago, jonatan said: I wanted to hide the "Trash" for "editor" role users FYI, you can disable trash for non-superusers in the ProcessPageList module settings: https://processwire.com/blog/posts/processwire-3.0.107-core-updates/#trash-for-all
jonatan Posted October 2, 2020 Author Posted October 2, 2020 1 minute ago, Robin S said: FYI, you can disable trash for non-superusers in the ProcessPageList module settings: https://processwire.com/blog/posts/processwire-3.0.107-core-updates/#trash-for-all Thanks @Robin S! I know and that's exactly the feature I had activated.. ? I wanted the non-superusers to be able to trash items, but not be able to see the "TRASH" page... But then again when I think about it know I guess it's perhaps stupid to have the ability to trash pages but not see the trash....? The reason why was that I just wanted to make it easy for them to "bulk delete" a lot of pages... Or not really bulk but at least only having to hover over the page > ">" > "TRASH" which is easier than "EDIT" > "DELETE"(tab) > confirm > save. And I guess I thought it to be easier for them / more user-friendly if they wouldn't be bothered with seeing the pages they've just trashed. But well then again I guess it's useful to see the trash if you delete something by accident
Robin S Posted October 2, 2020 Posted October 2, 2020 Personally, I don't allow non-superusers to see the trash and I like that they have to navigate to the Delete tab because I want them to think very carefully before they delete a page. 5 minutes ago, jonatan said: Or not really bulk but at least only having to hover over the page > ">" > "TRASH" which is easier than "EDIT" > "DELETE"(tab) > confirm > save. If you want to hide Trash (as per the setting mentioned above) but want to let non-superusers trash pages from Page List then you could look at this module: 1
jonatan Posted October 2, 2020 Author Posted October 2, 2020 2 minutes ago, Robin S said: If you want to hide Trash (as per the setting mentioned above) but want to let non-superusers trash pages from Page List then you could look at this module: Awesome! thanks! ? 1
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