os-js / osjs-client

OS.js Client Module
https://manual.os-js.org/
Other
31 stars 31 forks source link

mapping applications to user groups #140

Closed dsikes closed 3 years ago

dsikes commented 3 years ago

For my particular use case I will have multiple users logging into the system. Depending on which groups the user belongs to, this should control which applications they see / can launch.

@andersevenrud mentioned that its currently supported via metadata.json here: https://github.com/os-js/osjs-client/blob/master/src/packages.js#L414

But we would like to extend it for this specific use case.

andersevenrud commented 3 years ago

Great suggestion. On it!

andersevenrud commented 3 years ago

I opened a PR for this: https://github.com/os-js/osjs-client/pull/141

Now, this only hides the packages visually. But I can make it so they are blocked entirely from being launched if that's something you need :)

dsikes commented 3 years ago

I'm not sure my users would try to launch anything they couldn't see - but, it does seem like a good solution just to cover our bases. But this totally rocks!

andersevenrud commented 3 years ago

Alright. I'll knock that one out as well because I know others have wondered about this as well :)

andersevenrud commented 3 years ago

I just published @osjs/client@3.4.0 with all the changes mentioned :)

andersevenrud commented 3 years ago

I have now documented all of the options for disabling packages here: https://manual.os-js.org/guide/disabling-packages/