Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Groovy console does not execute scripts with admin user #102

Closed
olimination opened this issue Mar 24, 2020 · 3 comments
Closed

Groovy console does not execute scripts with admin user #102

olimination opened this issue Mar 24, 2020 · 3 comments

Comments

@olimination
Copy link
Contributor

In the README file it is described that the admin user by default can execute scripts, but this somehow does not seem to work.

  • Logged in as admin user in AEM
  • Open /apps/groovyconsole.html
  • Execute some script
  • Error message appears: "You do not have permission to run scripts in the Groovy Console."

If we add an appropriate OSGi config for the "Groovy Console Service", then it works.

But according to the code here:

hasPermission = user.admin || (allowedGroups ? memberOfGroupIds.intersect(allowedGroups as Iterable) : false)

I actually assume that it should work.

Do I miss something or could this be some bug?

Tested with AEM 6.5.2.0

@markdaugherty
Copy link
Collaborator

This is fixed in the latest develop snapshot but has not been released yet.

@markdaugherty
Copy link
Collaborator

What version are you running?

@olimination
Copy link
Contributor Author

Ah cool, version 14.0.0. Then we'll wait for the next version.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants