mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-05-06 05:38:51 +00:00
fix: incorrect settings page navigate (#72)
This commit is contained in:
@@ -59,10 +59,7 @@ export default function SettingsPage() {
|
||||
|
||||
const isAdmin = profile?.role === 0
|
||||
|
||||
console.log(isAdmin)
|
||||
|
||||
if (!isAdmin) {
|
||||
console.log("redirect")
|
||||
navigate("/dashboard/settings/waf")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user