Re: Re[4]: Understanding Privileges

"marc" <[email protected]> Tue, 20 Jan 2004 09:30:42 +0100
Newsgroups gmane.comp.cms.xaraya.documentation
Organization Xaraya News Server
Message-ID <[email protected]>
> >> 2. What is 'realms' and how we can use it practically?

A simple example:

As you know a security check is done by comparing the privileges a user has
with a mask in the code.

Both privileges and masks contain a realms component. Right now that
component is ALL everywhere, iirc.

Imagine you create a module where all the masks are defined to require realm
= 1. You can now define appropriate privileges so that only people with the
correct realm in their privileges can access that module.

Roger Keays has created a demo site to illustrate realms. You can see it at
http://osko.ninthave.net/~roger/realms

Marc