• directory role: wfGetUserActions

    By J Flidr 2 decades ago

    I believe that in your wfGetUserActions you should iterate wfGetUserRoles instead of UserRoles




            Case &quot;3&quot; 'Directory Role<br/>
                RoleRestrictionsExist = True                <br/>
                Forall Role In wfGetUserRoles(paramDoc, False, True) 'not UserRoles<br/>
                    If Role = RestrictFormulas(i) Then <br/>
                        Passed4 = True<br/>
                    End If<br/>
                End Forall<br/>
            End Select
    
    • seems OK?

      By Mark Demicoli 2 decades ago

      Hi J,



      the second parameter must be false otherwise the function simply returns all workflow role names rather than the roles which the current user (session.username) has in respect to paramDoc's workflow. Not working for you?



      variant = wfGetUserRoles(paramDoc, False, False)

      • By J Flidr 2 decades ago

        Hi Mark,

        your're probably right ;-)