diff options
author | mkanat%bugzilla.org <> | 2008-08-08 08:26:33 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2008-08-08 08:26:33 +0200 |
commit | 50dbcc4e7a38642856cbeeef88d2b3a4a884b5e1 (patch) | |
tree | 424d04a868fb5fdffbfa2dd65cc8903ece84895f /docs | |
parent | aca14df0a0daca1f2eb637d400285e3f14add35e (diff) | |
download | bugzilla-50dbcc4e7a38642856cbeeef88d2b3a4a884b5e1.tar.gz bugzilla-50dbcc4e7a38642856cbeeef88d2b3a4a884b5e1.tar.xz |
Bug 442031: Make Bugzilla::User::groups return an arrayref of Bugzilla::Group objects (instead of a hashref of group ids and names).
Diffstat (limited to 'docs')
-rw-r--r-- | docs/en/xml/customization.xml | 6 |
1 files changed, 3 insertions, 3 deletions
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 @@ <programlisting><![CDATA[... [% ', <a href="editkeywords.cgi">keywords</a>' - IF user.groups.editkeywords %] + IF user.in_group('editkeywords') %] [% Hook.process("edit") %] ...]]></programlisting> @@ -592,7 +592,7 @@ You then create that template file and add the following constant: </para> - <programlisting><![CDATA[...[% ', <a href="edit-projects.cgi">projects</a>' IF user.groups.projman_admins %]]]></programlisting> + <programlisting><![CDATA[...[% ', <a href="edit-projects.cgi">projects</a>' IF user.in_group('projman_admins') %]]]></programlisting> <para> 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.: <programlisting> if ($field eq "qacontact") { - if (Bugzilla->user->groups("quality_assurance")) { + if (Bugzilla->user->in_group("quality_assurance")) { return 1; } else { |