summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/FlagType.pm2
-rw-r--r--Bugzilla/User.pm8
2 files changed, 6 insertions, 4 deletions
diff --git a/Bugzilla/FlagType.pm b/Bugzilla/FlagType.pm
index ffa36863e..2892a8392 100644
--- a/Bugzilla/FlagType.pm
+++ b/Bugzilla/FlagType.pm
@@ -177,6 +177,8 @@ sub is_requestable { return $_[0]->{'is_requestable'}; }
sub is_requesteeble { return $_[0]->{'is_requesteeble'}; }
sub is_multiplicable { return $_[0]->{'is_multiplicable'}; }
sub sortkey { return $_[0]->{'sortkey'}; }
+sub request_group_id { return $_[0]->{'request_group_id'}; }
+sub grant_group_id { return $_[0]->{'grant_group_id'}; }
###############################
#### Methods ####
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index 7f59b749c..f495132b1 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -796,15 +796,15 @@ sub can_request_flag {
my ($self, $flag_type) = @_;
return ($self->can_set_flag($flag_type)
- || !$flag_type->request_group
- || $self->in_group_id($flag_type->request_group->id)) ? 1 : 0;
+ || !$flag_type->request_group_id
+ || $self->in_group_id($flag_type->request_group_id)) ? 1 : 0;
}
sub can_set_flag {
my ($self, $flag_type) = @_;
- return (!$flag_type->grant_group
- || $self->in_group_id($flag_type->grant_group->id)) ? 1 : 0;
+ return (!$flag_type->grant_group_id
+ || $self->in_group_id($flag_type->grant_group_id)) ? 1 : 0;
}
sub direct_group_membership {