mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #32033 from overleaf/ii-project-sharing-admin-page
[web] Sharing permissions group admin page GitOrigin-RevId: 97baeeca9ca33cec043badcae2affdd954081ef2
This commit is contained in:
+24
-11
@@ -96,6 +96,8 @@ export default function ManagedGroupSubscriptions() {
|
||||
|
||||
const combinedUserManagement = useFeatureFlag('combined-user-management')
|
||||
|
||||
const isSharingUpdatesEnabled = useFeatureFlag('sharing-updates')
|
||||
|
||||
if (!managedGroupSubscriptions) {
|
||||
return null
|
||||
}
|
||||
@@ -147,17 +149,28 @@ export default function ManagedGroupSubscriptions() {
|
||||
<GroupSettingsButtonWithAdBadge subscription={subscription} />
|
||||
)}
|
||||
{isAdmin && (
|
||||
<RowLink
|
||||
href={`/manage/groups/${subscription._id}/audit-logs`}
|
||||
heading={t('audit_logs')}
|
||||
subtext={t('view_audit_logs_group_subtext')}
|
||||
icon="list"
|
||||
onClick={() =>
|
||||
sendMB('group-audit-log-click', {
|
||||
subscriptionId: subscription._id,
|
||||
})
|
||||
}
|
||||
/>
|
||||
<>
|
||||
{isSharingUpdatesEnabled &&
|
||||
subscription.planLevelName === 'Professional' && (
|
||||
<RowLink
|
||||
href={`/manage/groups/${subscription._id}/sharing-permissions`}
|
||||
heading={t('sharing_permissions')}
|
||||
subtext={t('manage_group_sharing_permissions_subtext')}
|
||||
icon="share"
|
||||
/>
|
||||
)}
|
||||
<RowLink
|
||||
href={`/manage/groups/${subscription._id}/audit-logs`}
|
||||
heading={t('audit_logs')}
|
||||
subtext={t('view_audit_logs_group_subtext')}
|
||||
icon="list"
|
||||
onClick={() =>
|
||||
sendMB('group-audit-log-click', {
|
||||
subscriptionId: subscription._id,
|
||||
})
|
||||
}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
<RowLink
|
||||
href={`/metrics/groups/${subscription._id}`}
|
||||
|
||||
Reference in New Issue
Block a user