-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
feat(server): Add publicUsers toggle for user search #14330
feat(server): Add publicUsers toggle for user search #14330
Conversation
Can you help test if the mobile app will need to patch this property in |
Sure. Is there a preview sever for this? I haven't done anything with mobile before. Or just use the Android app to login to my local server and test? |
I was able to login to my local server on an old Android device but seeing some issues. Going to test a bit more to see if its my device or this change |
I am able to reproduce the issue on a second Android device. When the publicUsers is set to false and I create a new album, the add users to album displays no users to add (as expected). However, after the initial view of the album, it seems the app thinks I am no longer the owner. The add users, share, etc. options no longer show - just leave album. Even if I set publicUsers back to With publicUsers set to true, I can close the app and go back to the shared album and add users. Maybe I should return a list of just the current user rather than
|
This does seem to resolve the issue
|
55edcc2
to
9977ae0
Compare
@alextran1502 does not appear to need any patching. I was able to use the current mobile app with the new setting both enabled and disabled. I did need to return a list with the current user rather than empty list (PR updated) |
9977ae0
to
2ccac65
Compare
* feat(server): Add publicUsers toggle for user search * tests * docs: add check:typescript for web PR checklist * return auth.user when publicUsers is false - app testing --------- Co-authored-by: Alex <[email protected]>
By default, when a user adds an immich user to a shared library, the user-selection-modal shows a list of all users (email and name) on the server. This can be problematic on a more public server used by multiple groups that you don't want to leak names and emails. The long term fix is the proper groups/organizations structure.
This is a short term fix that adds a
publicUsers
server setting. By default, this will betrue
to maintain existing functionality. But if this setting is disabled, regular users will not see any users in the user-selection-modal. Admin users will still see all of the users and be able to add users to shared albums.New Setting

What non-admin users will see on user-selection-modal