Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chenhao Ma
core
Commits
c65c0819
Commit
c65c0819
authored
8 years ago
by
Ryan
Committed by
Megan Henning
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Resolve rebase conflict
parent
6e801cbd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/handlers/listhandler.py
+0
-14
0 additions, 14 deletions
api/handlers/listhandler.py
with
0 additions
and
14 deletions
api/handlers/listhandler.py
+
0
−
14
View file @
c65c0819
...
...
@@ -238,7 +238,6 @@ class PermissionsListHandler(ListHandler):
"""
method to propagate permissions from a project to its sessions and acquisitions
"""
<<<<<<<
75
b71f5b10aaa1fba79830084d057fb2aea50ab8
if
cont_name
==
'
projects
'
:
try
:
oid
=
bson
.
ObjectId
(
_id
)
...
...
@@ -248,19 +247,6 @@ class PermissionsListHandler(ListHandler):
hierarchy
.
propagate_changes
(
cont_name
,
oid
,
{},
update
)
except
:
self
.
abort
(
500
,
'
permissions not propagated from project {} to sessions
'
.
format
(
_id
))
=======
try
:
log
.
debug
(
_id
)
oid
=
bson
.
ObjectId
(
_id
)
update
=
{
'
permissions
'
:
config
.
db
.
projects
.
find_one
(
oid
)[
'
permissions
'
]
}
session_ids
=
[
s
[
'
_id
'
]
for
s
in
config
.
db
.
sessions
.
find
({
'
project
'
:
oid
},
[])]
config
.
db
.
sessions
.
update_many
({
'
project
'
:
oid
},
{
'
$set
'
:
update
})
config
.
db
.
acquisitions
.
update_many
({
'
session
'
:
{
'
$in
'
:
session_ids
}},
{
'
$set
'
:
update
})
except
Exception
as
e
:
self
.
abort
(
500
,
'
permissions not propagated from project {} to sessions
'
.
format
(
_id
))
>>>>>>>
Resolve
most
pylint
ERROR
class
issues
class
NotesListHandler
(
ListHandler
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment