Fixed creation of users + better frontend handling of permissions
This commit is contained in:
@@ -11,8 +11,8 @@ export default async function Page() {
|
||||
me.status === "Error" ||
|
||||
!me.data ||
|
||||
!hasPermissions(me.data.roles, {
|
||||
blogs: ["get"],
|
||||
})
|
||||
blogs: ["get"] as const,
|
||||
}).all
|
||||
) {
|
||||
redirect("/dashboard");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user