Using the property login.enableGuestLoginLinks=false the LoginModule can be configured to allow / disallow login for unregistered guest users. It is a system-wide configuration option.
While this option safely keeps anonymous users out of the system, within the repository configuration it is still possible to publish courses for guests which makes no sense. The goal of this issue is to hide this publishing option when there are actually no guests allowed in the system.
When LoginModule.isGuestLoginLinksEnabled() == false to the following:
- Check all access to repositoryEntry.getAccess() >= RepositoryEntry.ACC_USERS_GUESTS and subtract the guest access. Alternatively modify the repositoryEntry.getAccess() method to transparently fix this for all callings of the method
- Remove the BARG option from all GUI elements (DetailsReadOnlyForm, DisplayInfoForm etc).
- For resources with BARG settings, make sure it translates to behaves like BAR setting