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

Fix ability to view Manager Actions #16473

Merged
merged 2 commits into from
Oct 3, 2023
Merged

Conversation

smg6511
Copy link
Collaborator

@smg6511 smg6511 commented Sep 19, 2023

What does it do?

Update view permissions key in logs controller.

Why is it needed?

The old 2.x key was still being specified in this controller, making it impossible for those without sudo permissions to view the Manager Actions log.

How to test

Test against a user having the mgr_log_view (and without sudo permissions) to verify Manager Actions can be viewed and navigated.

Related issue(s)/PR(s)

Resolves #16445

Update permissions key to new 3.x mgr_log_view key
@rthrash rthrash added this to the v3.0.4 milestone Sep 21, 2023
@BobRay
Copy link
Contributor

BobRay commented Sep 22, 2023

It looks like there may be some problems with the PR that prevent it from being merged. Wrapping line 37 should solve one of them. The namespace one makes no sense to me.

Just changing the permission should solve the problem. Are the other changes really necessary?

@smg6511
Copy link
Collaborator Author

smg6511 commented Sep 22, 2023

@BobRay - Yes, don't worry about those; the namespace one is something that'll be taken care of when another of my recent PRs gets merged that relaxes the rule that causes the error you see. The other changes are just code formatting fixes to conform to our PSR12 rules (otherwise you'd see a bunch more errors about those).

@rthrash rthrash added cla-signed CLA confirmed for contributors to this PR. bug The issue in the code or project, which should be addressed. labels Sep 27, 2023
@opengeek opengeek merged commit eae6e62 into modxcms:3.x Oct 3, 2023
6 of 7 checks passed
opengeek pushed a commit that referenced this pull request Oct 3, 2023
* Update logs controller

Update permissions key to new 3.x mgr_log_view key

* Code formatting update
@smg6511 smg6511 deleted the 3.x-issue-16445 branch November 1, 2023 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue in the code or project, which should be addressed. cla-signed CLA confirmed for contributors to this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't see Manager Actions Log unless I'm a sudo user
4 participants