taskrambler
0.1.8
Web server and task management solution.
|
Go to the source code of this file.
Functions | |
CLASS (Role) | |
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file role.h.
CLASS | ( | Role | ) |
I think I do not need an index here...because these are only used to setup a permission set within the user session...so these are simply added to this set..... With the users it is a different story...in fact i don't think that this relation should be stored here...this is an extra relation which is indexed by the usr name and credential and holds an array of roles he is in...on the other hand...if a role changes we need a fast way to get all users to update their permissions if they are online...
New thoughts, a resource might be either a URL or a userid. When it is a userid the configured rights are valid for all resources owned by that user. Each grouped resource has less precedence than a specific one. That means, access rights can be removed for single resources after they have been added via a grouped resource. By default each user is assigned a role that allows him to do everything with every resource she/he has created. This role is also named after the user id.
Definition at line 33 of file role.h.
References interface::name.