Access Control

davexoxide - June 30, 2009 - 15:25
Project:Multistep
Version:6.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:vkareh
Status:closed
Description

Some roles should have the ability to view forms without multistep.

#1

vkareh - July 1, 2009 - 14:00
Component:Code» User interface

I'm thinking that since that is not always a desirable feature, say if the form is unusually long (which will take a while to render) we should make it optional. Maybe a button on the top that says "view the complete form" or something similar? What are your thoughts on this?

#2

vkareh - July 2, 2009 - 19:13
Assigned to:Anonymous» vkareh
Status:active» fixed

I programmed in a way for users with "toggle multistep" permissions to toggle back and forth between the entire form and the multistep form. Check out the new commit and see if this works for you.

#3

davexoxide - July 16, 2009 - 16:07

This feature would give the desired result if it actually worked.
What I'm seeing is that 0 is actually being returned as FALSE.
So $step never gets set to 0 and the form returns to step 1.

Line 354

  if (is_numeric(arg(3)) && arg(3) == 0 && user_access('toggle multistep')) {
    $step = 0;
  }

#4

vkareh - July 16, 2009 - 16:12

Did you try the new snapshot (I just committed it a few minutes ago)? I took a different approach at setting field #access. It might solve the problem for you. It actually works for me.

#5

System Message - July 30, 2009 - 16:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.