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

[BUG] Module Permissions not being shown #4503

Closed
leigh-pointer opened this issue Aug 9, 2024 · 1 comment
Closed

[BUG] Module Permissions not being shown #4503

leigh-pointer opened this issue Aug 9, 2024 · 1 comment

Comments

@leigh-pointer
Copy link
Contributor

Oqtane Info

Version - 5.2.0
Render Mode - Static
Interactivity - Server
Database - SQL Server

Describe the bug

I have a module with custom permissions. In both Host and Admin the first time they are display but when viewing again (or a third time) only the default permissions are displayed. On further investigation it appears that any other module with custom permissions are not displayed.

Expected Behavior

Permissions should be displayed.

Steps To Reproduce

Create a module with custom permissions and view enter "manage settings" from action menu.

Anything else?

Permmisions

@leigh-pointer
Copy link
Contributor Author

It appears that the OnInitializedAsync is not called when the error occurs. Changing the event to OnParametersSetAsync seems to fix the intermittent loading of permissions. I will raise a PR for review.

sbwalker added a commit that referenced this issue Aug 10, 2024
Fix for #4503 Module Custom Permissions not being shown
sbwalker added a commit to sbwalker/oqtane.framework that referenced this issue Sep 9, 2024
sbwalker added a commit that referenced this issue Sep 9, 2024
fix #4503 - ensure all state is initialized before rendering
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