Security feature toggle inconsistency for project-level shares when set to "required" in global settings

Description

Ensure that when a security feature is set to "required" in Global Settings, basic users creating shares at the project level cannot toggle this feature off.

Currently, the UI incorrectly allows users to attempt disabling the security feature, which causes confusion as the system appears to save the share without it, although the feature remains active.


Steps to reproduce

  1. Set a specific security feature to "required" in Global Settings.
  2. Log in as a basic user and attempt to create a share at the project level.
  3. Observe that the security feature toggle appears available for the user to disable.
  4. Save the share and check if the security feature remains active.

Expected behavior

  • The security feature toggle should be disabled for users when set to "required" in Global Settings.
  • Basic users should not have the option to disable the security feature.
  • The UI should clearly reflect the "required" status of the security feature, preventing user confusion.

Activity