Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian New Member Process
nm.debian.org
Commits
297a2c2d
Verified
Commit
297a2c2d
authored
Mar 27, 2021
by
Pierre-Elliott Bécue
🚼
Browse files
Approval contains the intent for emeritus/removed and therefore should also be private in that case
parent
c4dc33d6
Pipeline
#242037
failed with stage
in 5 minutes and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
process/permissions.py
View file @
297a2c2d
...
@@ -97,7 +97,7 @@ class RequirementVisitorPermissions(ProcessVisitorPermissions):
...
@@ -97,7 +97,7 @@ class RequirementVisitorPermissions(ProcessVisitorPermissions):
# Declarations of intent for emeritus/removed processes are only posted
# Declarations of intent for emeritus/removed processes are only posted
# on -private, and must therefore be only visible to DDs
# on -private, and must therefore be only visible to DDs
if
self
.
requirement
.
type
==
"intent"
:
if
self
.
requirement
.
type
in
(
"intent"
,
"approval"
)
:
if
(
self
.
process
.
applying_for
not
in
(
const
.
STATUS_EMERITUS_DD
,
const
.
STATUS_REMOVED_DD
)
if
(
self
.
process
.
applying_for
not
in
(
const
.
STATUS_EMERITUS_DD
,
const
.
STATUS_REMOVED_DD
)
or
(
self
.
visitor
is
not
None
and
self
.
visitor
.
is_dd
)
or
(
self
.
visitor
is
not
None
and
self
.
visitor
.
is_dd
)
or
(
self
.
visitor
==
self
.
person
)):
or
(
self
.
visitor
==
self
.
person
)):
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment