Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
6dbf8d1b
Unverified
Commit
6dbf8d1b
authored
Jul 06, 2021
by
Karishma Chadha
Committed by
GitHub
Jul 06, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5692 from kchadha/manager-permissions
Update manager permissions for studios.
parents
54b9161d
d0ad0a45
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/redux/studio-permissions.js
src/redux/studio-permissions.js
+1
-1
test/unit/redux/studio-permissions.test.js
test/unit/redux/studio-permissions.test.js
+1
-1
No files found.
src/redux/studio-permissions.js
View file @
6dbf8d1b
...
...
@@ -8,7 +8,7 @@ const isCurator = state => state.studio.curator;
const
isManager
=
state
=>
state
.
studio
.
manager
||
isCreator
(
state
);
// Action-based permissions selectors
const
selectCanEditInfo
=
state
=>
!
selectIsMuted
(
state
)
&&
(
selectIsAdmin
(
state
)
||
is
Manage
r
(
state
));
const
selectCanEditInfo
=
state
=>
!
selectIsMuted
(
state
)
&&
(
selectIsAdmin
(
state
)
||
is
Creato
r
(
state
));
const
selectCanAddProjects
=
state
=>
!
selectIsMuted
(
state
)
&&
(
isManager
(
state
)
||
...
...
test/unit/redux/studio-permissions.test.js
View file @
6dbf8d1b
...
...
@@ -89,7 +89,7 @@ describe('studio info', () => {
test
.
each
([
[
'
admin
'
,
true
],
[
'
curator
'
,
false
],
[
'
manager
'
,
tru
e
],
[
'
manager
'
,
fals
e
],
[
'
creator
'
,
true
],
[
'
logged in
'
,
false
],
[
'
unconfirmed
'
,
false
],
...
...
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