5.7.129. Bugzilla::Extension::AgileTools::Role

5.7.129.1. NAME

Bugzilla::Extension::AgileTools::Role - Team member role class

5.7.129.2. SYNOPSIS

use Bugzilla::Extension::AgileTools::Role;

my $role = new Bugzilla::Extension::AgileTools::Role(1);

my $role_id = $role->id;
my $name = $role->name;
my $is_custom = $role->custom;
my $can_edit_team = $role->can_edit_team;

my $roles = Bugzilla->user-agile_team_roles($team);

5.7.129.3. DESCRIPTION

Role object represents a user role in a team and defines some permissions that the user has regarding the team. Role is inherited from Bugzilla::Object.

5.7.129.4. FIELDS

name (mutable) - Role name

is_custom - Is this a custom role or built-in

can_edit_team (mutable) - Is the member with this role allowed to edit the team

5.7.129.5. METHODS

add_user_role($team, $user)

Description: Add role for user in specific team
Params:      $team - Team object where user role is added
             $user - User object, id or login name for which the role is added

remove_user_role($team, $user)

Description: Remove user role in specific team.
Params:      $team - Team object where user role is removed
             $user - User object, id or login name from which the role is
                     removed

5.7.129.6. CLASS FUNCTIONS

get_user_roles($team, $user)

Description: Get users roles in specific team.
Params:      $team - Team object for which to get the roles
             $user - User object, id or login name for which to get the
                     roles
Returns:     Array ref of Role objects

5.7.129.8. SEE ALSO

Bugzilla::Object


This documentation undoubtedly has bugs; if you find some, please file them here.