Skip to content

After updating to pw 2.6 stable, adding new users is not possible for others than superuser #42

@apeisa

Description

@apeisa

Trying to add new user (as a non superuser) gives me error:

You do not have permission to execute this module - ProcessPageAdd

I tracked it down to this line: https://github.com/apeisa/UserGroups/blob/master/UserGroupsHooks.module#L157

If we comment that line, we don't get any errors. That cannot be real solution, since we are using before hook, so changing return value without replace is useless (as far as I know).

This error must be due the changes in how ProcessWire handles module permissions. Since we don't actually load ProcessPageAdd anywhere (or do we?), this is much harder to track.

Any ideas @teppokoivula ? Have you tried UserGroups in 2.6 yet? All the other parts seem to work nicely, just this "non superuser adding new users" is causing troubles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions