Description
Visibility info is not displayed for regular users in project detail view.
History
An old PR was closed. (#1710)
Start to work on it freshly in week 37
after these PRs are merged:
#1715
#1719
Jochens comments:
I think, the actual problem is that regular users cannot view the visibility object. The problem needs to be fixed in https://github.com/rdmorganiser/rdmo/blob/3.0.0/release/rdmo/projects/rules.py#L94 not in the front-end.
Ok, the easy part is to use
rules.add_perm('projects.view_visibility_object', is_project_member | is_visible | is_site_manager)
in rdmo/projects/rules.py and
if (permissions.can_view_visibility) {
store.dispatch(projectActions.fetchProjectVisibility(projectId))
}
in rdmo/projects/assets/js/project/store/configureStore.js.
The bigger problem is that site_managers cannot access /api/v1/core/sites/ and /api/v1/core/groups/. Lets talk about it in the meeting.
Description
Visibility info is not displayed for regular users in project detail view.
History
An old PR was closed. (#1710)
Start to work on it freshly in week 37
after these PRs are merged:
#1715
#1719
References from original PR
Jochens comments:
rules.add_perm('projects.view_visibility_object', is_project_member | is_visible | is_site_manager)