Slider is static for certain users. I assume it is a permissions problem but I can not see any obvious settings that need to be enabled.

Comments

jrowny’s picture

Status: Active » Postponed (maintainer needs more info)

Can you provide a way for me to replicate this behavior?

Glenmoore’s picture

The only two roles that have access to the sliderfield are Admin and another much more limited role. It may work for you if you setup a role with almost no permissions except to view and edit the field. I have tried giving other roles access just to that field to see if they could operate it but they couldn't.

I have a 'Decimal' field set up as 'Number Slider (adjustable-experimental)' which has its Maximum value populated by another 'Decimal' (text) field (btw it would be great if I were able to populate a Minimum value from a similar field :).

I have Field Permissions module but that doesnt seem to have any effect other than to hide the field when access is withdrawn (as you would expect).

The field is rendered perfectly, the user is simply not able to move the slider. However, everything works as expected for Admin.

Glenmoore’s picture

Status: Postponed (maintainer needs more info) » Active

Sorry, forgot to make it active again.

jrowny’s picture

I'll try to replicate it the issue but we're not touching anything with permissions, literally just loading up a bit of javascript over a regular number field. I wonder if, for some reason that user is not getting all the javascript loaded properly.

Glenmoore’s picture

That seems very odd then cos I've tried setting up other User Types and using other browser types and none of this makes a difference. As soon as I assign them Admin permissions it works immediately!

Glenmoore’s picture

Ok I think I've found where the problem lies. Initially, I had Rules Forms Support hide the field from which the slider is taking its Maximum Value when the form was being built (but only when role != admin).
When I disabled this rule the slider worked perfectly well for all Roles. So, thinking it may be a problem with Rules Forms Support permissioning, I tried replacing the functionality with Field Permissions module.
However, as soon as I make the Maximum Value field available only to the Admin Role again, the other users cannot move the slider.
So looks like each Role has to have "Create Own Value" access to the field that gives the slider's Maximum Value.
Obviously this is no good for me as allowing the user to alter the Maximum Value for the slider defeats the purpose somewhat.

Glenmoore’s picture

Title: Certain User Roles Cannot Move Slider » Cannot Move Slider without "Create" access to Max Value Field

Changing Title to make it more accurate

sinasalek’s picture

Version: 7.x-1.0-beta1 » 7.x-2.x-dev

Version 2 uses different code, this issue might be fixed, please try the new version and report back if it's fixed or not

sinasalek’s picture

Status: Active » Closed (fixed)