|
Fix for issue associated with super-admins and department affiliation in a given organisation. (#2165)
Changes made:
- Department policies now allow both org admins and super admins to
create update and delete departments, whilst org_admins can only do this
for their own org. Super admins can do it for any org department.
- When a super admin switches organisation their department_id is cleared.
Fix for issue #2088.
|
|---|
|
|
| app/models/user.rb |
|---|
| app/policies/department_policy.rb |
|---|
| app/views/devise/registrations/_personal_details.html.erb |
|---|