[Minor fix] : Removed extra checks from isAdmin variable in Footer.jsx#6021
[Minor fix] : Removed extra checks from isAdmin variable in Footer.jsx#6021rautniraj wants to merge 3 commits intobigbluebutton:masterfrom
Conversation
We dont need these two checks : currentUser && currentUser.role We are already handling this very safe : currentUser?.role.name === 'Administrator';
|
What i observe, we should also let super admin to view version tag in footer. My suggestion
|
|
Agreed - can you make this change? |
…min, while considering for admin privilege
|
|
Its done now. In Footer.jsx + SharedAccess.jsx element i have modified isAdmin check to include SuperAdmin also. These were the two places where isAdmin was being checked. Important Please share your view on my very old PR #5951 . Suggested changes will improve the UI and application logic. |
|
Was having issues merging this, so I created a new PR |



We dont need these two checks :
currentUser && currentUser.roleWe can handle this in a good way :
currentUser?.role?.name === 'Administrator'