Date: 02/07/00
- Next message: Jan Johansson: "[PHPLIB] Whats wrong with this code?"
- Previous message: Rudi Heitbaum: "[PHPLIB] Problem with $sess->delete()"
- In reply to: Alexander Aulbach: "Re: [PHPLIB] Variable Perms"
- Next in thread: Kristian Köhntopp: "Re: [PHPLIB] Variable Perms"
- Reply: Kristian Köhntopp: "Re: [PHPLIB] Variable Perms"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Alexander Aulbach wrote:
>
> On Mon, 7 Feb 2000, Paul Wolstenholme wrote:
> }But on reflection, I this will not work. I forgot that the perm class
> }only allows up to 31 groups. I'm likely to have more.
>
> 31 different groups??? What by the hell are you programming?
I know it sounds crazy but I trying to set something up like
http://vicinities.com/. It is a collaborative web space. Users can
create communities and invite members to join.
>
> Perhaps it is not the problem and you mix somthing up.
Yes, this would not be the first time.
>
> You can have up to 31 different permissions. Every bit describes for
> example the "right" to access a function in your application.
>
> You can have as many groups as you want, that have the right (or not) to
> access it!
>
> The permissions is the sieve and the groups are the pepples. And you have
> up to 31 different types of sieves.
Understood. But what do you do when each group needs its own sieve?
Would it make sense for example to have two sieves. The first uses the
standard php permissions (e.g group level permission). The second
checks for membership in a particular group. I think I could do this be
extending the perms class to include a method that does a sql lookup.
But this seems a bit redundant. Perhaps I should just create a method
that looks up the person in the group table if they exist they can view
the page. The challenge would be to integrate it properly with the
authentication class so that when a person logs in the system know what
groups the person belongs to.
/Paul
>
> Hope that helps.
>
> --
>
> SSilk - Alexander Aulbach - Herbipolis/Frankonia Minoris - (0931)22032
>
> -
> PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
> To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
> the body, not the subject, of your message.
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Jan Johansson: "[PHPLIB] Whats wrong with this code?"
- Previous message: Rudi Heitbaum: "[PHPLIB] Problem with $sess->delete()"
- In reply to: Alexander Aulbach: "Re: [PHPLIB] Variable Perms"
- Next in thread: Kristian Köhntopp: "Re: [PHPLIB] Variable Perms"
- Reply: Kristian Köhntopp: "Re: [PHPLIB] Variable Perms"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

