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

Use module without enabling it in Module.json #672

Closed
ajsheldon93 opened this Issue Nov 30, 2018 · 4 comments

Comments

Projects
None yet
2 participants
@ajsheldon93

ajsheldon93 commented Nov 30, 2018

I have an application with many different modules. I want to be able to have someone access only specific modules, but other users have access to different ones. I know I can enable/disable as needed, but that makes the change in the module.json file. I want to be able to default all modules to disabled and enable specific modules based on a User's authorization for just that page load.

Is there some kind of $module->use() or $module->tempEnable() that exists or can be added? I want to be able to enable a list of modules tied to a specific user.

Thanks!

@nWidart

This comment has been minimized.

Owner

nWidart commented Dec 3, 2018

Hello,

Indeed I agree you shouldn't use the module enable/disable to do this.
I would suggest using roles and permissions to disallow users from using certain features.

@ajsheldon93

This comment has been minimized.

ajsheldon93 commented Dec 3, 2018

@nWidart
Thats what I plan to do also. But the roles were more going to limit the view or edit abilities inside a module. I would still love a feature to enable based on certain criteria for just the page load. Some of the modules may have the same routes and I can't have more then one of the modules enabled at a time.

@nWidart

This comment has been minimized.

Owner

nWidart commented Dec 3, 2018

There's currently no way to do this.

I would avoid having modules with the same route.

@nWidart

This comment has been minimized.

Owner

nWidart commented Dec 19, 2018

I'll close this as there hasn't been a reply in a while, feel free to comment if needed.

@nWidart nWidart closed this Dec 19, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment