Check if user exist in group

RESOLVED INVALID

Status

()

RESOLVED INVALID
7 years ago
7 years ago

People

(Reporter: kapila.kohli, Unassigned)

Tracking

Details

(Reporter)

Description

7 years ago
User Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2

Steps to reproduce:

I created a group-X & went into code level to check if any user is mapped to group-X or not.For this is went to file ="Bugzilla/User.pm" where function "in_group" has the way out.
now when i check @"./template/en/default/bug/edit.html.tmpl"
[% IF = user.in_group(Param('GRP_X'))  %]

In data/params have entered entry - 'GRP_X' => ' '





Actual results:

this doesn't give me correct data rather gives 0 


Expected results:

instead it should give 1.
please suggest where am i going wrong.

Comment 1

7 years ago
This is a support question. Also, you cannot simply edit data/params and expect things to work. See http://www.bugzilla.org/support for help.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.