Roles?

2 views
Skip to first unread message

aetherical

unread,
May 1, 2009, 1:28:18 PM5/1/09
to tog_users
Has much thought been given to roles?

I notice that the user table has a true/false for admin.... Beyond
that, has any thought been given to roles? I've not looked at the
source yet (I know, bad), but off the top of the developer's heads, if
I use one of the popular roles plugins, how much grief will it cause
me if I take the admin field out, or am I better off just leaving it
there and using roles separately?

Thanks...

IamPersistent

unread,
May 1, 2009, 2:50:35 PM5/1/09
to tog_users
The admin field is used for the admin features of the site. I think
there would need to be some refactoring of the user code to work with
roles. I had looked at it and I don't think it would be a major deal
to do. I think the separation would be good anyway. Then we could
look at rolling our own (pun intended) or as you said, use a plugin
that is already in place.

Richard

Alberto Molpeceres

unread,
May 2, 2009, 5:12:55 AM5/2/09
to tog_...@googlegroups.com
Hi,

Just in case it helps you (or any other). For our projects (and
plugins), we separate actions based on "object ownership". I mean, we
have three separated namescopes: "site" (no namescope), "member" and
"admin". Admin is quite clear, are the actions for global site
administration, but there is a "tricky" difference between "member"
and "site".

- "Member" isn't just "for login_required actions", but for the "owner
of the object". That is, the moderator of a group if talking about
groups, the member of a group if talking about a membeship, the author
of a post, the user who is going to attent an event if talking about
attendances in tog_conclave.

- "Site" are "all other actions".

The main reason for this is that we build the site around the content
and it's ownership, not the role an user has in the appplication
(social applications). And in the few cases we needed some different
roles, it was application's specific features, and we developed
specific controllers and models for this, but we have make this only
once.

That said, as Richard said, admin column should be replaced easily by
a more complete role support. We haven't given much thought to this
issue, since we haven't needed it yet. We have talked about it time
ago, but nothing done. But you won't find any support for roles in the
developed plugins outside this namescope separation right now.

What kind of site are you developing?. Do you need many roles?. Tell
us if we decide to integrate some plugin and we can help you.

--
Alberto Molpeceres.
Linking Paths.
Find us at http://www.linkingpaths.com

aetherical

unread,
May 4, 2009, 2:24:33 PM5/4/09
to tog_users
On May 2, 5:12 am, Alberto Molpeceres <alberto.molpece...@gmail.com>
wrote:
> What kind of site are you developing?. Do you need many roles?. Tell
> us if we decide to integrate some plugin and we can help you.

It's for a browser game with social aspects. I'm wanting to have the
ability to have, say, NPC's, who have special traits -- such as not
being able to log into them, for one. Also, I'm thinking in terms of
clubs and/or guilds -- I know that there are the groups, but I'd like
to have the club's "owner" to have special traits, too. Also
moderators for forums...

Basically some users which aren't administrators, but aren't regular
users, either....

I'm in the process of trying to buy a house & move, but I'll take a
stab and see what I come up with....

Thanks,
Matt

Alberto Molpeceres

unread,
May 4, 2009, 2:30:45 PM5/4/09
to tog_...@googlegroups.com
Umm....

Well, in current plugins groups have moderators, like blogs has
authors, and so on. But I understand you.

I can't say much, but Aitor and Balint have been talking about a role
plugin and some other enhancements today for tog's 0.5 the last punch
in Tog Station (campfire's room), so maybe you can help/influentiate
them (I muss admit I don't know the result of their conversatio).

al.
Reply all
Reply to author
Forward
0 new messages