Created attachment 88625 [details] [review] Bug 22765 - Add class beside loggedinusername to indicate if logged in user is a superlibrarian It would be useful to know if a logged in user is a superlibrarian for the purpose of customization using Javascript and CSS. Test Plan: 1) Apply this patch, restart all the things 2) Log in as a superlibraraian 3) Note the new class 'is_superlibrarian' next to the 'loggedinusername' class 4) Log in as a non-superlibrarian 5) Note the new class is not present
Created attachment 88627 [details] [review] Bug 22765 - Add class beside loggedinusername to indicate if logged in user is a superlibrarian It would be useful to know if a logged in user is a superlibrarian for the purpose of customization using Javascript and CSS. Test Plan: 1) Apply this patch, restart all the things 2) Log in as a superlibraraian 3) Note the new class 'is_superlibrarian' next to the 'loggedinusername' class 4) Log in as a non-superlibrarian 5) Note the new class is not present Signed-off-by: Barton Chittenden <barton@bywatersolutions.com>
Created attachment 88633 [details] [review] Bug 22765 - Add class beside loggedinusername to indicate if logged in user is a superlibrarian It would be useful to know if a logged in user is a superlibrarian for the purpose of customization using Javascript and CSS. Test Plan: 1) Apply this patch, restart all the things 2) Log in as a superlibraraian 3) Note the new class 'is_superlibrarian' next to the 'loggedinusername' class 4) Log in as a non-superlibrarian 5) Note the new class is not present Signed-off-by: Barton Chittenden <barton@bywatersolutions.com> Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Created attachment 88634 [details] [review] Bug 22765: Add class beside loggedinusername to indicate if logged in user is a superlibrarian It would be useful to know if a logged in user is a superlibrarian for the purpose of customization using Javascript and CSS. Test Plan: 1) Apply this patch, restart all the things 2) Log in as a superlibraraian 3) Note the new class 'is_superlibrarian' next to the 'loggedinusername' class 4) Log in as a non-superlibrarian 5) Note the new class is not present Signed-off-by: Barton Chittenden <barton@bywatersolutions.com> Signed-off-by: Liz Rea <wizzyrea@gmail.com> Fix commit message
Created attachment 88682 [details] [review] Bug 22765: Add class beside loggedinusername to indicate if logged in user is a superlibrarian It would be useful to know if a logged in user is a superlibrarian for the purpose of customization using Javascript and CSS. Test Plan: 1) Apply this patch, restart all the things 2) Log in as a superlibraraian 3) Note the new class 'is_superlibrarian' next to the 'loggedinusername' class 4) Log in as a non-superlibrarian 5) Note the new class is not present Signed-off-by: Barton Chittenden <barton@bywatersolutions.com> Signed-off-by: Liz Rea <wizzyrea@gmail.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Awesome work all! Pushed to master for 19.05
Enhancement will not be backported to 18.11.x series.