RBAC, Permissions, and Export/Import

This commit is contained in:
Koncept Kit
2025-12-16 20:04:00 +07:00
parent 02e38e1050
commit 9ed778db1c
30 changed files with 4579 additions and 487 deletions

View File

@@ -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)}