Loading

[SOLVED] Collabtive permissions

General Discussion around Collabtive

[SOLVED] Collabtive permissions

Postby Remiguel » 20.11.2014, 01:02

Where can I find a complete relation of collabtive permissions. I mean we can allow action by criteria as: admin.add admin.edit, project.add, project.edit.
I guess we can restrict action for user according his permission to view, add or edit time, tasks or milestones.
Where could I find a relation of those permissions or which template or form is used to set those permission?
Thanks
Last edited by Remiguel on 08.01.2015, 16:23, edited 1 time in total.
Remiguel
 
Posts: 96
Joined: 10.06.2014, 09:34
Location: Spain / France

Re: Collabtive permissions

Postby Eva » 21.11.2014, 13:23

I'm not sure if I understand your question. Let me try to answer anyway:

- You can find the available permissions in the lower half of the user administration
- Permissions are bundled in roles, each user is assigned to exactly one role
- The permissions can be read in all templates from the current user.

Is it clearer now?
Project Management the way you like it: Collaborative - Open Source - Free

facebook.com/Collabtive
twitter.com/Collabtive
xing.com/companies/collabtive
linkedin.com/company/collabtive
User avatar
Eva
 
Posts: 1471
Joined: 01.01.2008, 23:31
Location: Saarbrücken, Germany

Re: Collabtive permissions

Postby Remiguel » 29.11.2014, 13:40

Thank you Eva

Sorry my post was not really clear.
The relation of permission I was looking for, is more a list of valid variable like:

for project
$userpermissions.projects.add
$userpermissions.projects..edit
$userpermissions.projects..del

For instance for Timetracker may I use
$userpermissions.timetracker.add
$userpermissions.timetracker.edit
$userpermissions.timetracker.view
$userpermissions.timetracker.read
$userpermissions.timetracker.del

Where is the code/class to read the database to set those variable?
Remiguel
 
Posts: 96
Joined: 10.06.2014, 09:34
Location: Spain / France

Re: Collabtive permissions

Postby Remiguel » 07.01.2015, 13:23

Happy new years to all Collabtive readers :mrgreen:

All permissions are set with rolesadmin.tpl. From that template we can retrieve all permissions "class".
manageroles.php and class.roles.php are used for adding, editing and deleting roles.

In Admin.php role for each users are read from database with
Code: Select all
$roles = $roleobj->getAllRoles();

with
Code: Select all
$action == "users"


Now I have all to add a new permission class for timetracker (admin). I want to allow only supervisors to check and valid time, that users are reporting ;) .
Edited
by the way, what is the difference in timetracker between read and view? => found it:
"read" in timetracker, means allow to view registers from other users :)
Remiguel
 
Posts: 96
Joined: 10.06.2014, 09:34
Location: Spain / France

Re: Collabtive permissions

Postby Eva » 07.01.2015, 20:50

A :D new year for you, too!

If I get it right, you were able to find the answers you were looking for, correct?
Project Management the way you like it: Collaborative - Open Source - Free

facebook.com/Collabtive
twitter.com/Collabtive
xing.com/companies/collabtive
linkedin.com/company/collabtive
User avatar
Eva
 
Posts: 1471
Joined: 01.01.2008, 23:31
Location: Saarbrücken, Germany

Re: Collabtive permissions

Postby Remiguel » 08.01.2015, 16:22

Yes you're right, I found it. :D
Remiguel
 
Posts: 96
Joined: 10.06.2014, 09:34
Location: Spain / France


Return to General

Who is online

Users browsing this forum: No registered users

cron