Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
01a6bec8
Commit
01a6bec8
authored
5 years ago
by
mntmn
Browse files
Options
Download
Email Patches
Plain Diff
fix loading space that user is member of
parent
bdb2e9fd
master
saml-integration
1 merge request
!2
Mnt
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
models/db.js
+2
-2
models/db.js
with
2 additions
and
2 deletions
+2
-2
models/db.js
+
2
-
2
View file @
01a6bec8
...
...
@@ -285,14 +285,14 @@ module.exports = {
}
else
{
var
findMembershipsForSpace
=
function
(
space
,
allMemberships
,
prevRole
)
{
Membership
.
findAll
({
where
:
{
"
space
"
:
space
.
_id
"
space
_id
"
:
space
.
_id
}}).
then
(
function
(
parentMemberships
)
{
var
currentMemberships
=
parentMemberships
.
concat
(
allMemberships
);
if
(
space
.
parent_space_id
)
{
Space
.
findOne
({
where
:
{
"
_id
"
:
space
.
parent_space_id
}}
,
function
(
err
,
parentSpace
)
{
}}
).
then
(
function
(
parentSpace
)
{
findMembershipsForSpace
(
parentSpace
,
currentMemberships
,
prevRole
);
});
}
else
{
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets