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

Links do not work if app is available only to certain groups #154

Closed
AntDsl opened this issue Nov 12, 2020 · 4 comments
Closed

Links do not work if app is available only to certain groups #154

AntDsl opened this issue Nov 12, 2020 · 4 comments

Comments

@AntDsl
Copy link

AntDsl commented Nov 12, 2020

Hello,

I use the application in a school environment where teachers can use the application to create links, but the application is not available to students. To achieve that I restrict the application through the Nextcloud apps page to certain groups.

The problem is that when someone that does not have access to the Appointment app tries to open a public link while logged in to Nextcloud the link does not work and redirects the user to the main page. This is actually the default behavior when a user tries to open a link that belongs to an app that she/he has no access.

If the user is not logged in, or has normal access to the Appointments app, it works correctly.

Any ideas for a workaround about that? Maybe a built-in per group restriction would help.

For integrating the app into Nextcloud I simply use the Link editor app, and add the public links to make them available where is needed, so users are already logged in by default.

Having the app available to all users is not a big issue, but having a control over that would be nice. I just prefer to have the interface as less cluttered as possible for students, disabling not needed apps.

@SergeyMosin
Copy link
Owner

Yes, there is no default partial functionality disable setting. However, let's say the public booking page would be available as is, but "control/preview" panel would be disabled for "non teachers". The appointment icon would still be shown in the menu for the "non teachers", but when it is clicked it is possible to show a different page instead of the "control/preview" panel.
The question is, what would the NON "control/preview" panel page say, error, warning ?

Note to self: Disable the StateControler for students as well in case there are some Kevin Mitnicks among them.

@AntDsl
Copy link
Author

AntDsl commented Nov 21, 2020

First of all, I want to mention that I used the application recently to a great extend and it was a ton of help! It worked without problems, booking more than 200 appointments.

Since the application does not have a settings page for the administrator, we cant have a custom page or message right? In that case maybe a simple "The application is not available to any of your groups" would suffice.

@SergeyMosin
Copy link
Owner

Available in v1.8.10 via occ config:app:set command, example:

php occ config:app:set appointments limitToGroups --value '["group1","group2"]'

Only users in group1 and group2 will have access to the appointments settings

occ docs: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#config-commands-label

image

@AntDsl
Copy link
Author

AntDsl commented Mar 8, 2021

Thank you! this is very helpful, and actually at the right moment, since we have been using the app extensively this month, and I was asked about the particular problem last week.

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