Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
fb4f6f7b
Commit
fb4f6f7b
authored
9 years ago
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1232190: FlagType.create should require the user to be logged in
r/a=dkl
parent
b77d2178
master
dev
release-5.0-stable
version-5.2
release-5.0.6-etersoft
release-5.0.5-etersoft
release-5.0.4-etersoft
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
FlagType.pm
Bugzilla/WebService/FlagType.pm
+3
-7
No files found.
Bugzilla/WebService/FlagType.pm
View file @
fb4f6f7b
...
@@ -61,11 +61,9 @@ sub get {
...
@@ -61,11 +61,9 @@ sub get {
sub
create
{
sub
create
{
my
(
$self
,
$params
)
=
@_
;
my
(
$self
,
$params
)
=
@_
;
my
$user
=
Bugzilla
->
login
(
LOGIN_REQUIRED
);
my
$dbh
=
Bugzilla
->
dbh
;
$user
->
in_group
(
'editcomponents'
)
my
$user
=
Bugzilla
->
user
;
Bugzilla
->
user
->
in_group
(
'editcomponents'
)
||
scalar
(
@
{
$user
->
get_products_by_permission
(
'editcomponents'
)})
||
scalar
(
@
{
$user
->
get_products_by_permission
(
'editcomponents'
)})
||
ThrowUserError
(
"auth_failure"
,
{
group
=>
"editcomponents"
,
||
ThrowUserError
(
"auth_failure"
,
{
group
=>
"editcomponents"
,
action
=>
"add"
,
action
=>
"add"
,
...
@@ -121,11 +119,9 @@ sub create {
...
@@ -121,11 +119,9 @@ sub create {
sub
update
{
sub
update
{
my
(
$self
,
$params
)
=
@_
;
my
(
$self
,
$params
)
=
@_
;
my
$dbh
=
Bugzilla
->
dbh
;
my
$dbh
=
Bugzilla
->
dbh
;
my
$user
=
Bugzilla
->
user
;
my
$user
=
Bugzilla
->
login
(
LOGIN_REQUIRED
)
;
Bugzilla
->
login
(
LOGIN_REQUIRED
);
$user
->
in_group
(
'editcomponents'
)
$user
->
in_group
(
'editcomponents'
)
||
scalar
(
@
{
$user
->
get_products_by_permission
(
'editcomponents'
)})
||
scalar
(
@
{
$user
->
get_products_by_permission
(
'editcomponents'
)})
||
ThrowUserError
(
"auth_failure"
,
{
group
=>
"editcomponents"
,
||
ThrowUserError
(
"auth_failure"
,
{
group
=>
"editcomponents"
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment