RBAC, Permissions, and Export/Import
This commit is contained in:
@@ -32,7 +32,7 @@ const Navbar = () => {
|
||||
Welcome, {user.first_name}
|
||||
</span>
|
||||
)}
|
||||
{user?.role === 'admin' && (
|
||||
{(user?.role === 'admin' || user?.role === 'superadmin') && (
|
||||
<Link to="/admin">
|
||||
<button
|
||||
className="text-white text-base font-medium hover:opacity-80 transition-opacity bg-transparent border-none cursor-pointer"
|
||||
@@ -320,7 +320,7 @@ const Navbar = () => {
|
||||
|
||||
{/* Footer Actions */}
|
||||
<div className="p-4 border-t border-white/20 space-y-3">
|
||||
{user?.role === 'admin' && (
|
||||
{(user?.role === 'admin' || user?.role === 'superadmin') && (
|
||||
<Link
|
||||
to="/admin"
|
||||
onClick={() => setIsMobileMenuOpen(false)}
|
||||
|
||||
Reference in New Issue
Block a user