Hello,

I don't enable the roles options. But when I look at the MySQL log, there are many queries on the _roles and _roles_relations tables.

The fact is that mobile_tools_roles.inc is always loaded, and there are some hooks on it. So the solution may be to separate it to another module, more independant.

Thanks.

Comments

twom’s picture

Assigned: Unassigned » twom
Status: Active » Needs review

hi,

Thank you for the feedback. The roles functionality is not yet a really well tested functionality.

However, I fixed two things among which I know check if you enabled the mobile roles functionality before attempting to query the database.

I have committed it to the dev branch.

Regards,
Tom

duckzland’s picture

I want to add one more things about mobile roles

Settings:

mobile version url set to the same url as desktop version (eg. http://something.net/ for both url)
enable the authenticated user mobile roles thus creating authenticated user (mobile roles)

for this example, in authenticated user permission for edit own cck profile type set to allowed and the authenticated (mobile) set to disallowed.

While expected behavior is when user in "desktop mode" they should be able to view / edit their own profile and when user in "mobile mode" they shouldnt be able to view / edit profile page.

The test result : in "desktop mode" user unable to view and edit the profile page as well as in "mobile mode"

I haven't look at the code thoroughly but seems judged based from the result, the mobile tools module only creates the "mobile roles" without implementing role switching?

manuj_78’s picture

Priority: Normal » Critical
Status: Needs review » Active

We are having similar issue as well.

After installing the module, I as an admin was also unable to edit user profiles..It just resulted in WSOD

twom’s picture

Status: Active » Closed (fixed)

The mobile roles functionality has been refactored and is now a separate module. The above mentioned problems should be fixed.