- sharing groups are now correctly checked in restfullEventToServer
- The rules are very simple, the event has to:
- be of distribution value 2 or 3
- or 4 given that the attached sharing group meets the following requirements:
- The sync user is in the sharing group's org list (otherwise he can't transfer it / become the owner)
- Or the instance that is being synced to has to be set to "all_orgs"
- The SG has to either not include any instances
- Or include the instance that is being synced to
- UI cleanup
- separate view for active / passive sharing groups
- deletion of SGs is blocked if there are still events / attributes / threads around that belong to the SG
- new role permission added for SG editors
- roles reworked, permissions all looked up centrally from the role model instead of code replication across controllers and views
- user filtering now correctly uses organisation objects instead of org strings