fix: hide the group picker from users who may not share with groups (#30189)

This commit is contained in:
G30 authored and GitHub committed 2026-09-19 15:34:33 -05:00
1 parent 621ed6de7f
commit af9ef1dcbc
9 files changed
+15

No files matched your search

@@ -211,6 +211,7 @@ class Tools:
share={$user?.permissions?.sharing?.tools || $user?.role === 'admin'}
sharePublic={$user?.permissions?.sharing?.public_tools || $user?.role === 'admin'}
shareUsers={($user?.permissions?.access_grants?.allow_users ?? true) || $user?.role === 'admin'}
allowGroups={($user?.permissions?.access_grants?.allow_groups ?? true) || $user?.role === 'admin'}
onChange={async () => {
if (edit && id) {
try {