1
0
Fork 0
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:
Harvey Kandola 2017-09-18 13:50:44 +01:00
parent cd543a1506
commit c4c95a9d24
2 changed files with 5 additions and 6 deletions

View file

@ -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 {

View file

@ -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 () {});
} }
} }
}); });