phpDocumentor Testlink
[ class tree: Testlink ] [ index: Testlink ] [ all elements ]

Procedural File: roles.inc.php

Source Location: /roles.inc.php

Page Details
Includes
require_once (dirname(__FILE__).'/lang_api.php') [line 42]

TestLink Open Source Project - http://testlink.sourceforge.net/

Information Tags:
Author:  

Martin Havlat, Chad Rosen

This script provides the get_rights and has_rights functions for verifying user level permissions.

Default USER RIGHTS:

'guest' - testplan_metrics, mgt_view_tc, mgt_view_key 'tester' - testplan_execute, testplan_metrics 'senior tester' - testplan_execute, testplan_metrics, mgt_view_tc, mgt_modify_tc, mgt_view_key 'lead' - testplan_execute, testplan_create_build, testplan_metrics, testplan_planning, testplan_assign_rights, mgt_view_tc, mgt_modify_tc, mgt_view_key, mgt_modify_key 'admin' - testplan_execute, testplan_create_build, testplan_metrics, testplan_planning, testplan_assign_rights, mgt_view_tc, mgt_modify_tc, mgt_view_key, mgt_modify_key, mgt_modify_product, mgt_users

OPTIONS: FUNCTIONALITY ALLOWED FOR USER:

mgt_view_tc, testplan_metrics, mgt_view_key - allow browse basic data testplan_execute - edit Test Results mgt_modify_tc - edit Test Cases mgt_modify_key - edit Keywords mgt_modify_req - edit Requirements testplan_planning, testplan_create_build, testplan_assign_rights - Test Leader plans/prepares a testing mgt_modify_product, mgt_users - just Admin edits Products and Users

20081030 - franciscom - added new rights -> system 20070901 - franciscom - BUGID 1016 20070819 - franciscom - added get_tplan_effective_role(), get_tproject_effective_role()

Version:  $Revision: 1.1.2.1 $
[ Top ]


Functions
checkForRights  [line 175]

type checkForRights( type $rights, type $roleQuestion, [type $bAND = 1]  )

Function-Documentation

Parameters:
type   $rights:  documentation
type   $roleQuestion:  documentation
type   $bAND:  [default = 1] documentation

API Tags:
Return:  documentation

Information Tags:
Author:  Andreas Morsing <schlundus@web.de>
Since:  20.02.2006, 20:30:07

[ Top ]
deleteRole  [line 359]

void deleteRole( &$db, $roleID  )
Parameters:
   &$db: 
   $roleID: 


[ Top ]
getRoleErrorMessage  [line 322]

void getRoleErrorMessage( $code  )
Parameters:
   $code: 


[ Top ]
get_tplan_effective_role  [line 300]

void get_tplan_effective_role( &$db, $tplan_id, $tproject_id, [ $user_id = null], [ $users = null]  )
Parameters:
   &$db: 
   $tplan_id: 
   $tproject_id: 
   $user_id: 
   $users: 


[ Top ]
get_tproject_effective_role  [line 230]

void get_tproject_effective_role( &$db, $tproject_id, [ $user_id = null], [ $users = null]  )
Parameters:
   &$db: 
   $tproject_id: 
   $user_id: 
   $users: 


[ Top ]
has_rights  [line 140]

void has_rights( &$db, $roleQuestion, [ $tprojectID = null], [ $tplanID = null]  )

function takes a roleQuestion from a specified link and returns whether

the user has rights to view it

Parameters:
   &$db: 
   $roleQuestion: 
   $tprojectID: 
   $tplanID: 


[ Top ]
init_global_rights_maps  [line 69]

void init_global_rights_maps( )


[ Top ]
propagateRights  [line 152]

void propagateRights( $fromRights, $propRights, &$toRights  )
Parameters:
   $fromRights: 
   $propRights: 
   &$toRights: 


[ Top ]


Documentation generated on Fri, 03 Apr 2009 14:13:49 +0200 by phpDocumentor 1.4.1