From 50dbcc4e7a38642856cbeeef88d2b3a4a884b5e1 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Fri, 8 Aug 2008 06:26:33 +0000 Subject: Bug 442031: Make Bugzilla::User::groups return an arrayref of Bugzilla::Group objects (instead of a hashref of group ids and names). --- docs/en/xml/customization.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/en/xml/customization.xml b/docs/en/xml/customization.xml index 81a5b4960..9c69c3757 100644 --- a/docs/en/xml/customization.xml +++ b/docs/en/xml/customization.xml @@ -582,7 +582,7 @@ keywords' - IF user.groups.editkeywords %] + IF user.in_group('editkeywords') %] [% Hook.process("edit") %] ...]]> @@ -592,7 +592,7 @@ You then create that template file and add the following constant: - projects' IF user.groups.projman_admins %]]]> + projects' IF user.in_group('projman_admins') %]]]> Voila! The link now appears after the other administration links in the @@ -746,7 +746,7 @@ positive check, which returns 1 (allow) if certain conditions are true, or a negative check, which returns 0 (deny.) E.g.: if ($field eq "qacontact") { - if (Bugzilla->user->groups("quality_assurance")) { + if (Bugzilla->user->in_group("quality_assurance")) { return 1; } else { -- cgit v1.2.3-24-g4f1b