zonvoir / electrum_reports

0 stars 0 forks source link

Check user login session and role for every page #11

Open hasan-najeebul opened 1 month ago

hasan-najeebul commented 1 month ago

Add a common function to check login session on every page and redirect non loggedin user to login page. You can add that function in header file Similarly add logic to check user role and show the appropriate message if user is not authorized to access that page. Do not show the button, text, image, list, link etc if user is not authorized to use it.

Estimated: 4 hours