Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Wolfgang Knopki
Spacedeck-open-SAML
Commits
ecdacd6e
Commit
ecdacd6e
authored
Apr 09, 2020
by
mntmn
Browse files
explicitly make new spaces private
parent
92cf6c43
Changes
1
Hide whitespace changes
Inline
Side-by-side
routes/api/spaces.js
View file @
ecdacd6e
...
...
@@ -166,6 +166,7 @@ router.post('/', function(req, res, next) {
attrs
.
creator_id
=
req
.
user
.
_id
;
attrs
.
edit_hash
=
crypto
.
randomBytes
(
64
).
toString
(
'
hex
'
).
substring
(
0
,
7
);
attrs
.
edit_slug
=
slug
(
attrs
.
name
);
attrs
.
access_mode
=
"
private
"
;
db
.
Space
.
create
(
attrs
).
then
(
createdSpace
=>
{
res
.
status
(
201
).
json
(
createdSpace
);
...
...
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