Ciro Iriarte schrieb:
> 2009/5/12 Thomas Schmidt <tschm...@suse.de>:
>> Ciro Iriarte wrote:
>>> 2009/4/24 Thomas Schmidt <tschm...@suse.de>:
>>>> Hm, that should have worked.
>>>> Did you check that datoscompra.roles.owner really is the field of the 
>>>> owner,
>>>> or could it be that the user you are testing with is a global swamp admin?
>>>>
>>>> Greetings
>>>>
>>>> --
>>>> Thomas Schmidt (tschmidt [at] suse.de)
>>>> SUSE Linux Products GmbH :: Research & Development :: Tools
>>>> "Don't Panic", Douglas Adams (1952 - 11.05.2001)
>>>>
>>> The role is defined like this:
>>>
>>> <role name="owner" restricted="true" type="databit">
>>>            <rolevalue>datoscompra.roles.owner</rolevalue>
>>> </role>
>>>
>>> The user was created like this:
>>>
>>>         mysql> insert into
>>> dbUsers(LOGIN_NAME,PASSWORD_MD5,FIRST_NAME,LAST_NAME,EMAIL) values
>>> ('usuario','5f4dcc3b5aa765d61d8327deb882cf99','Usu','Ario','usuario');
>>>
>>> It doesn't belong to any group.
>>>
>>> Regards,
>> Hi Ciro, sorry for the late reply.
>> Could you check your definition of the administracion role, maybe
>> restricted="true" there?
>> If it still don't work, please post a full workflow testcase so I can debug 
>> it.
>> Greetings
>>
>> --
>> Thomas Schmidt (tschmidt [at] suse.de)
> 
> Thanks for answering, I've been very busy too.Tried with
> restricted="true" and restricted="false" and usuario still can approve
> that step. I'm submitting my test workflow with a DB dump in case that
> is useful. (20Kb in total)

Hi Ciro, I figured out what's wrong in your workflow:
The default admin role has restricted=false which means that everyone
is an admin on this template.
When you set it to false, the user is no more able to do the administration 
task.

Greetings

-- 
Thomas Schmidt (tschmidt [at] suse.de)
SUSE Linux Products GmbH :: Research & Development :: Tools
"Don't Panic", Douglas Adams (1952 - 11.05.2001)

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
swamp-devel mailing list
swamp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swamp-devel
http://swamp.sf.net 

Reply via email to