#101 Team sharing form

* adds team sharing field to share form
* splits sharing logic into user based and teams based
* adds TeamAdmin for admin backend
* adds validity check on Team name -> only unused names shall be valid
This commit is contained in:
mpeltriaux committed 2022-02-18 11:02:40 +01:00
1 parent 02a6b815ea
commit 6dac847d22
26 files changed
+213 -113

No files matched your search

+1 -1
View File
@@ -292,7 +292,7 @@ class AbstractModelShareAPIView(AbstractAPIView):
id__in=obj.shared_users
)
new_users_objs = obj.shared_users.union(new_users_to_be_added)
obj.share_with_list(new_users_objs)
obj.share_with_user_list(new_users_objs)
return True