If I am "admin" and want to proceed a workflow, shouldn't I be able to
do it even though I am not the owner?

def Locks.owns_lock? (user, workitem_id)

    lock = $workitem_locks[Integer(workitem_id)]

    return false unless lock

    #(lock.user.id == user.id )
    (lock.user.id == user.id || user.admin )
  end

Pat.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenWFEru dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/openwferu-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to