From: Sam H. <sh...@ma...> - 2005-10-01 04:02:06
|
On Sep 30, 2005, at 15:16, Sam Hathaway via activitymail wrote: > Log Message: > ----------- > modifications to support changes to global.conf.dist adding %userRoles > hash and changing the meaning of values in %permissionLevels. > > Authz will now look up the role obtained from %permissionLevels in the > %userRoles hash, and compare the resulting number with the user's > permission level. The other half of this log message was supposed to be: > implemented named roles for permissions system. %userRoles maps role > names to numeric permission levels, and %permissionLevels now maps > activities* to role names. A slight change to Authz.pm accompanies > this > change to do the role-to-permission-level lookups. > > * a.k.a. operations, privilegespermissions, gotta get the terminology > straight. think of the users! > > %userRoles should be used by modules such as UserList for providing > more > intelligent editing of the permission_level field. Another possible > use > would be to for pretty-printing user types -- a user could be called a > student, ta, professor, etc. based on what role corresponded to their > permission_level. |