#* @vtlvariable name="action" type="com.atlassian.confluence.security.actions.EditGlobalPermissionsAction" *# $action.getActionName($action.getClass().getName()) #requireResource("confluence.web.resources:global-permissions-inline-dialog") perms #parse ( "/template/includes/actionerrors.vm" )

$i18n.getText('global.permissions.description', $docBean.getLink("help.global.permissions.overview"), $i18n.getText("global.permissions.overview.link"))

#form_xsrfToken()

$i18n.getText('perms.licensed.users')

$i18n.getText('perms.groups')

$action.getText("global.group.perms")
#set ($groupRows = $action.groupPermissionRows) #if ($groupRows.size() > 0) #showGlobalPermissionsHeader() #foreach ($groupRow in $groupRows) #foreach ($permission in $action.permissions) #end #end #else #end
$htmlUtil.htmlEncode($groupRow.groupName) #if (!$groupRow.entityExists())
$action.getText("error.group.not.found") #elseif ($groupRow.caseInvalid)
$action.getText('error.permission.incorrect.case', [$htmlUtil.htmlEncode($groupRow.group.name)]) #elseif ($action.isConfluenceAdministratorsGroup($groupRow.groupName)) $i18n.getText("inline.dialog.help") #end
#set ($canSetGlobalPermission = $action.canSetPermissionOnGroup($permission, $groupRow.groupName)) #if ($groupRow.isTypeAllowed($permission)) ## use a hidden field to submit the value of the checked (but disabled) checkbox above (since disabled checkboxes don't get submitted) #if(!$canSetGlobalPermission) #end #else #end #if ($permission == 'useconfluence') $action.getText('perms.can.use') #end
$action.getText('globalperms.no.group.access')
#if ($action.allowPerGroupLicensing)
#bodytag ("Component" "theme='custom'" "label='Grant browse permission to'" "name='groupsToAdd'" "template='textfield-and-picker.vm'") #param ("formName" "editglobalperms") #param ("fieldClass" "autocomplete-group autocomplete-field") #param ("buttonOff" false) #param ("value" $editPermissionGroup) #param ("buttonName" "groupsToAddButton") #param ("imgTitle" "$action.getText('find.groups')") #param ("groupSearchActionName" "dosearchgroupsnopermissions.action") #param ("linkId" "grouppicker-popup-link") #end
#end #set ($userRows = $action.userPermissionRows) ## even if we don't allow more users to get added here, we still want to allow existing users to be removed #if ($action.allowPerUserLicensing || !$userRows.empty)

$i18n.getText('perms.individuals')

$action.getText("global.user.perms")
#if (!$userRows.empty) #showGlobalPermissionsHeader() #foreach ($userRow in $userRows) #foreach ($permission in $action.permissions) #end #end #else #end
#if ($userRow.entityExists()) $htmlUtil.htmlEncode($userRow.user.fullName) #end ($htmlUtil.htmlEncode($userRow.username)) #if (!$userRow.entityExists())
$action.getText("error.user.not.found") #elseif ($userRow.caseInvalid)
$action.getText('error.permission.incorrect.case', [$htmlUtil.htmlEncode($userRow.user.name)]) #end
#set ($canSetGlobalPermission = $action.canSetPermissionOnUser($permission, $userRow.username)) #if ($userRow.isTypeAllowed($permission)) ## use a hidden field to submit the value of the checked (but disabled) checkbox above (since disabled checkboxes don't get submitted) #if(!$canSetGlobalPermission) #end #else #end #if ($permission == 'useconfluence') $action.getText('perms.can.use') #end
$action.getText('globalperms.no.user.perms')
#if ($action.allowPerUserLicensing)
#bodytag ("Component" "theme='custom'" "label='Grant browse permission to'" "name='usersToAdd'" "template='textfield-and-picker.vm'") #param ("formName" "editglobalperms") #param ("fieldClass" "autocomplete-user autocomplete-field") #param ("size" "40") #param ("windowProperties" "status=yes,resizable=yes,top=100,left=200,width=700,height=680,scrollbars=yes") #param ("buttonOff" false) #param ("value" $usersToAdd) #param ("buttonName" "usersToAddButton") #param ("imgTitle" "$action.getText('find.users')") #param ("searchAction" "openuserpicker.action") #param ("linkId" "userpicker-popup-link") #param ("showUnlicensedUsers" true) #param ("additionalDataAttrs" "data-show-unlicensed=true") #end
#end #else

$i18n.getText('add.licenses.through.unified.usermanagement')

#end #set ($showGlobalUnlicensedUsersUI = $action.showGlobalUnlicensedUsersUI) #if ($showGlobalUnlicensedUsersUI)

$i18n.getText('perms.unlicensed.access')

$i18n.getText("global.unlicensed.users.perms")
#set ($unlicensedAuthenticatedRow = $action.unlicensedAuthenticatedPermissionRow)
  $i18n.getText("permissions.USECONFLUENCE") $i18n.getText("inline.dialog.help") $i18n.getText("permissions.VIEWUSERPROFILES") $i18n.getText("inline.dialog.help")
$i18n.getText('perms.unlicensed.users') #if ($unlicensedAuthenticatedRow.isTypeAllowed('LIMITEDUSECONFLUENCE')) #else #end $i18n.getText('perms.can.use') #if ($unlicensedAuthenticatedRow.isTypeAllowed('VIEWUSERPROFILES')) #else #end
#end

$i18n.getText('perms.anonymous')

$action.getText("global.anonymous.perms")
#set ($anonymousRow = $action.anonymousPermissionRow)
  $i18n.getText("permissions.USECONFLUENCE") $i18n.getText("inline.dialog.help") $i18n.getText("permissions.VIEWUSERPROFILES") $i18n.getText("inline.dialog.help")
$action.getText('perms.anonymous.user') #if ($anonymousRow.isTypeAllowed('useconfluence')) #else #end $action.getText('perms.can.use') #if ($anonymousRow.isTypeAllowed('VIEWUSERPROFILES')) #else #end
#tag ("Submit" "name='confirm'" "value='perms.saveall'" "theme='notable'" "cssClass='aui-button'") #tag ("Submit" "name='cancel'" "value='cancel.name'" "theme='notable'" "cssClass='aui-button aui-button-link'")
#parse ( "/breadcrumbs.vm" )