Re: Some privilege Qn

[email protected] (mikespub) Thu, 02 Oct 2003 08:00:44 GMT
Newsgroups gmane.comp.cms.xaraya.knowledge-base
Organization not much
Message-ID <[email protected]>
In article <blgapu$snb$1-111RdWWlOxkOkXtL6OYfHgC/[email protected]>, [email protected] (Banzai) wrote:
>Im still not clear the differences b/w Comment, Moderate, Edit, Add
>privilege levels.
>
>My confusions are:
>
The name of the privilege levels is only an indication of what they might
be used for. Each individual module will then decide for itself what e.g.
ACCESS_COMMENT means for it.

For instance, the articles module uses :
ACCESS_OVERVIEW to see the title/summary of articles
ACCESS_READ to display individual articles
ACCESS_COMMENT to submit articles
ACCESS_EDIT to edit/approve articles
ACCESS_DELETE to delete articles, and
ACCESS_ADMIN to define pubtypes etc.

It does not use ACCESS_MODERATE or ACCESS_ADD, because
the first doesn't really have a meaning in this context, and the second
is *higher* than ACCESS_EDIT, and we already want people to submit
articles with access *lower* than that, i.e. with ACCESS_COMMENT.

That's for the articles module - you'll see in the privileges wizard that
it "translates" some of those levels to something more understandable
in the interface.

Now every other module will have the same kind of decisions to make
for itself. It's *not* so that ACCESS_COMMENT in a module influences
the access rights to e.g. the hooked comments module - you need to
define those in the comments module itself.
(and the same for any other hooked module)

Mike.