mirror of
https://github.com/documize/community.git
synced 2025-07-20 05:39:42 +02:00
revised calc for space type
This commit is contained in:
parent
cd543a1506
commit
c4c95a9d24
2 changed files with 5 additions and 6 deletions
|
@ -641,12 +641,13 @@ func (h *Handler) SetPermissions(w http.ResponseWriter, r *http.Request) {
|
||||||
me = true
|
me = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(perm.UserID) == 0 {
|
|
||||||
hasEveryoneRole = true
|
|
||||||
}
|
|
||||||
|
|
||||||
// Only persist if there is a role!
|
// Only persist if there is a role!
|
||||||
if space.HasAnyPermission(perm) {
|
if space.HasAnyPermission(perm) {
|
||||||
|
// identify publically shared spaces
|
||||||
|
if len(perm.UserID) == 0 {
|
||||||
|
hasEveryoneRole = true
|
||||||
|
}
|
||||||
|
|
||||||
r := space.EncodeUserPermissions(perm)
|
r := space.EncodeUserPermissions(perm)
|
||||||
|
|
||||||
for _, p := range r {
|
for _, p := range r {
|
||||||
|
|
|
@ -120,8 +120,6 @@ export default Ember.Component.extend(NotifierMixin, {
|
||||||
this.showNotification('Marked space as private');
|
this.showNotification('Marked space as private');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// this.get('folderService').save(folder).then(function () {});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue