You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I keep a special class of users with a custom UserTemplate within the non-admin part of the page tree. These users are supposed to be administrated by standard users who have a certain role. When these administrator users (non-superusers) navigate to a custom user’s edit page via Access->Users this works fine. What doesn’t work is accessing the edit page via page tree actions or the admin search bar, because PagePermissions::userEditable() will return false unless it is called from process ProcessUser.
This forces administrator users to deviate from their usual workflow by necessitating they take a specific route to the edit page instead of going through the page tree or admin search as they would with normal pages.
// if the current process is something other than ProcessUser, they don't have permission
if($this->wire('process') != 'ProcessUser') {
return false;
}
The text was updated successfully, but these errors were encountered:
This is expected behavior as users are meant to be edited by ProcessUser only. But I'm with you, that the page-tree actions should still work and deligate to ProcessUser in this case.
Currently it would only work if the user was superuser. But I think it's okay to open up the permissions a bit here for users that have user-admin permission. I've updated it so that you should be able to get working edit links from within PageList and PageLister.
@JanRomero This issue seems to be fixed, thus I close it. If you think the issue isn’t fixed yet or requires additional work to do, please consider reopening it.
I keep a special class of users with a custom UserTemplate within the non-admin part of the page tree. These users are supposed to be administrated by standard users who have a certain role. When these administrator users (non-superusers) navigate to a custom user’s edit page via Access->Users this works fine. What doesn’t work is accessing the edit page via page tree actions or the admin search bar, because PagePermissions::userEditable() will return false unless it is called from process ProcessUser.
This forces administrator users to deviate from their usual workflow by necessitating they take a specific route to the edit page instead of going through the page tree or admin search as they would with normal pages.
The following condition should be removed from PagePermissions.module, IMHO:
The text was updated successfully, but these errors were encountered: