Daniel Angileri wrote:
I added the new role "testrole.rml" with the id "testrole".
Then I modified the file "usecase-policies.xml":

*******************************************
...
<usecases xmlns="http://apache.org/cocoon/lenya/ac/1.0";>
        <usecase id="create"><role id="edit"/><role
id="testrole"/></usecase>
        <usecase id="archive"><role id="edit"/><role
id="testrole"/></usecase>
        <usecase id="delete"><role id="edit"/><role
id="testrole"/></usecase>
        <usecase id="restore"><role id="edit"/><role
id="testrole"/></usecase>
...
*******************************************
Unfortunately it isn't possible to edit content with the role
"testrole"...

What have I done wrong?

I guess you have to add the role "testrole" to the "edit"
transition(s) in your workflow configuration.

-- Andreas





On Tue, 2005-11-08 at 08:55 +0100, Andreas Hartmann wrote:

Daniel Angileri wrote:

Ah, that's great.
Am I right that the whole usecase-id-list is defined
in /lenya/usecase.xmap

Basically, yes.


or are there other sources where I can find
usecase-id's like "archive", "edit", "restore"...

You can add custom usecases using a "usecase-***.xmap" in your
publication directory. I guess there's some documentation, but
I'm not sure.

-- Andreas



Daniel


On Mon, 2005-11-07 at 16:54 +0100, Andreas Hartmann wrote:


Daniel Angileri wrote:


And where do I specify what actions are allowed and which are denied?
(For example to edit content but don't be able to set access rights)

Usecase-based access control: config/ac/usecase-policies.xml

Workflow-based access control: config/workflow/*.xml

-- Andreas



On Mon, 2005-11-07 at 14:59 +0100, Andreas Hartmann wrote:



Daniel Angileri wrote:



Hello,

I want to know if somewhere exist any descriptions of creating new roles
for Apache Lenya. Thanks for help.

Just add the corresponding .rml files to config/ac/passwd,
then you can use the roles in your policy and workflow
configuration.

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to