Skip to content

Commit

Permalink
LPS-193374 Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-oliveira446 committed Aug 30, 2023
1 parent 3036770 commit 9aed101
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public interface ObjectConfiguration {
description = "allow-administrators-execute-script-help",
name = "allow-administrators-execute-script", required = false
)
public boolean allowInstanceAdminExecuteScript();
public boolean allowAdministratorsExecuteScript();

@Meta.AD(
deflt = "100",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static boolean hasPermissionExecuteCode(
ObjectConfiguration.class);

if (permissionChecker.isOmniadmin() ||
(objectConfiguration.allowInstanceAdminExecuteScript() &&
(objectConfiguration.allowAdministratorsExecuteScript() &&
permissionChecker.isCompanyAdmin())) {

return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ public class ObjectConfigurationModelListener

@Override
public void onAfterSave(String pid, Dictionary<String, Object> properties) {
boolean allowInstanceAdminExecuteScript = GetterUtil.getBoolean(
properties.get("allowInstanceAdminExecuteScript"));
boolean allowAdministratorsExecuteScript = GetterUtil.getBoolean(
properties.get("allowAdministratorsExecuteScript"));

if (!allowInstanceAdminExecuteScript) {
if (!allowAdministratorsExecuteScript) {
long defaultCompanyId = _portal.getDefaultCompanyId();

for (ObjectAction objectAction :
Expand Down

0 comments on commit 9aed101

Please sign in to comment.