Re: [web2py] Need some help on auth (groups)(users)(member)(permissions)

2012-05-15 Thread Remco K
Hi Richard,

Thanks for your answer.

I think you`re right. If you, or someone else, knows where to get an 
example application that uses most part of this features please let me know.
In a mean while I'll keep trying to get this to work. If i find something 
or get this to work I'll try to make a slice for it.


Op maandag 14 mei 2012 21:17:20 UTC+2 schreef Richard het volgende:
>
> I think that the RBAC built-in in web2py can handle most part of your 
> need, but I think you will have to build the logic you need around RBAC, 
> noting that fancy come out of the box. Maybe there is already available app 
> that does something similar.
>
> Richard
>
> On Mon, May 14, 2012 at 3:11 PM, Remco K <> wrote:
>
>> Hello everyone,
>>
>> I need -a little push in the right way- on implementing authorization.
>>
>> Here is what I have and what I want:
>>
>> 'ProjectA' has:
>>
>> * Multiple Users
>> * Multiple Documents
>> * Multiple Groups
>>
>> A user can have many documents
>> A user can be a member of multiple groups
>> A user can have multiple roles
>> A document can belongs to a groups
>>
>> Some rules:
>> * Users need to log in to access the functionality
>> * A document can be assigned to a group
>> * Users that are not a member of group A, which contains 'Document 
>> private', should not be able to read this document
>> * When an user adds a new document the users should only be allowed to 
>> attach this document to the groups which the user is member of.
>>
>> I tried to use build-in authentication model but don't get this working. 
>> Is there any web2py-based implementation to achieve this?
>
>
>

Re: [web2py] Need some help on auth (groups)(users)(member)(permissions)

2012-05-14 Thread Richard Vézina
I think that the RBAC built-in in web2py can handle most part of your need,
but I think you will have to build the logic you need around RBAC, noting
that fancy come out of the box. Maybe there is already available app that
does something similar.

Richard

On Mon, May 14, 2012 at 3:11 PM, Remco K  wrote:

> Hello everyone,
>
> I need -a little push in the right way- on implementing authorization.
>
> Here is what I have and what I want:
>
> 'ProjectA' has:
>
> * Multiple Users
> * Multiple Documents
> * Multiple Groups
>
> A user can have many documents
> A user can be a member of multiple groups
> A user can have multiple roles
> A document can belongs to a groups
>
> Some rules:
> * Users need to log in to access the functionality
> * A document can be assigned to a group
> * Users that are not a member of group A, which contains 'Document
> private', should not be able to read this document
> * When an user adds a new document the users should only be allowed to
> attach this document to the groups which the user is member of.
>
> I tried to use build-in authentication model but don't get this working.
> Is there any web2py-based implementation to achieve this?


[web2py] Need some help on auth (groups)(users)(member)(permissions)

2012-05-14 Thread Remco K
Hello everyone,

I need -a little push in the right way- on implementing authorization.

Here is what I have and what I want:

'ProjectA' has:

* Multiple Users
* Multiple Documents
* Multiple Groups

A user can have many documents
A user can be a member of multiple groups
A user can have multiple roles
A document can belongs to a groups

Some rules:
* Users need to log in to access the functionality
* A document can be assigned to a group
* Users that are not a member of group A, which contains 'Document 
private', should not be able to read this document
* When an user adds a new document the users should only be allowed to 
attach this document to the groups which the user is member of.

I tried to use build-in authentication model but don't get this working. Is 
there any web2py-based implementation to achieve this?