Open
Bug 158525
Opened 23 years ago
Updated 5 years ago
permissions tab on userprefs.cgi doesn't distinguish permissions from buggroups
Categories
(Bugzilla :: User Accounts, defect)
Tracking
()
NEW
People
(Reporter: timeless, Assigned: mcmaster-m3, NeedInfo)
References
()
Details
Attachments
(1 file)
|
2.73 KB,
patch
|
Details | Diff | Splinter Review |
Permissions
You have the following permission bits set on your account:
* Can edit all aspects of any bug.
* Can confirm a bug.
* Webtools Security-Sensitive Bug
what i see:
<ability>can <verb>edit <subject>all aspects of any bug.
<ability>can <verb>confirm <subject>a bug.
<unknownpartofspeech>Webtools Security-Sensitive Bug<nopunctuation>
Comment 1•23 years ago
|
||
That's because bug groups have names while system groups tell you what
permissions they relate to.
The obvious way to fix this is to separate the buggroups from the permissions on
this page just like they are on editusers.cgi.
Component: User Interface → User Accounts
Summary: group permissions don't fit English pattern → permissions tab on userprefs.cgi doesn't distinguish permissions from buggroups
Updated•22 years ago
|
OS: Windows 2000 → All
Hardware: PC → All
Updated•19 years ago
|
QA Contact: mattyt-bugzilla → default-qa
Updated•19 years ago
|
Assignee: myk → user-accounts
Comment 2•10 years ago
|
||
:glob- is this still a worthwhile bug to fix? If so, and if this makes a good first bug, can you link to the code, how to reproduce this problem, and what an ideal fix looks like?
Flags: needinfo?(glob)
the code is in userprefs.cgi::DoPermissions() and template/en/default/account/prefs/permissions.html.tmpl
DoPermissions needs to be refactored to just pass in an array of group objects to the template, and doesn't need to query the database directly at all.
eg (untested):
$vars->{has_bits} = $user->groups;
$vars->{set_bits} = [ grep { $user->can_bless($_->id) } @{ $user->groups } ];
in the template, in addition to refactoring due to has_bits and set_bits changes, for groups which are bug-groups ($group-isbuggroup) we should output:
Can view [% terms.bugs %] in the "[% $group->name FILTER html %]" group.
and for non-bug groups:
Is a member of the "[% $group->name FILTER html %]" group.
No longer blocks: 1126453
Flags: needinfo?(glob)
Updated•8 years ago
|
Keywords: good-first-bug
| Assignee | ||
Comment 4•8 years ago
|
||
Is anyone working on this currently? if not I'd like to take it on as my first bug.
| Assignee | ||
Updated•8 years ago
|
Flags: needinfo?(glob)
it's recommended to pick up a mentored bug as your first (this bug isn't mentored - the "mentor" field is empty), however as there's nobody working on it currently you're welcome to start here.
i haven't worked on bugzilla for some time now, so i'm not in a position to provide assistance i'm sorry; i recommend joining the #bugzilla channel on irc.mozilla.org and asking for help there.
Assignee: user-accounts → mcmaster-m3
Flags: needinfo?(glob)
| Assignee | ||
Comment 6•8 years ago
|
||
Refactored userprefs.cgi and permissions.html.tmpl along the lines Byron suggested
Attachment #8910715 -
Flags: review?(dkl)
Comment 7•8 years ago
|
||
Hey, that change seems pretty reasonable (though I haven't tested it yet).
However, there are some tasks that we desperately need help with.
I want to make a Bugzilla 6 release that is incredibly close what you see on bugzilla.mozilla.org.
Please reach out to my email or join irc.mozilla.org #bugzilla and ping me. ('dylan' there).
Flags: needinfo?(mcmaster-m3)
Comment 8•6 years ago
|
||
Removing good-first-bug keyword because team does not have bandwidth to mentor at the moment.
Keywords: good-first-bug
Updated•5 years ago
|
Whiteboard: [good first bug][lang=perl]
You need to log in
before you can comment on or make changes to this bug.
Description
•