Removing language selection option from home page User Preferences setting

adarshs
Mega Contributor

Hello All ,

We had a requirement to remove language selection option from user preference setting present on the home page for all users except for admins. Do I need to modify any properties or how it can be filtered based on roles. Please let me know your suggestion on this.

find_real_file.png

Thanks in Advance ,

Adarsh S

1 ACCEPTED SOLUTION

jeremieveltigro
Tera Contributor

Hi,



To achieved your goal I guess you'll have to change the ui_language_select UI Marcro and put an Jelly evaluation to get current user role and test on User role to display it only of the user has some specific role.



This thread could be interresting for you : Disable Language Picker in UI16



Regards.


Jeremie


View solution in original post

4 REPLIES 4

venkatiyer1
Giga Guru

Hi Adarsh,



There is a system property in UI properties for not showing the language selection option but that is not hiding this box. So your best bet might be to add an ACL for the language column under user table with role required to be an admin for read/write operation.


Hello Venkat ,



The requirement is users should change their language from their user profile through ESS page and not from this Nav page.. I think ACL could not be applied in this case.


Hi Adarsh,



You can still employ a read ACL with no roles associated, and in the script have it return 'answer=false;' if the view is not ESS.




Thanks,


-Brian


jeremieveltigro
Tera Contributor

Hi,



To achieved your goal I guess you'll have to change the ui_language_select UI Marcro and put an Jelly evaluation to get current user role and test on User role to display it only of the user has some specific role.



This thread could be interresting for you : Disable Language Picker in UI16



Regards.


Jeremie