Fix permission check issue

This commit is contained in:
Zoe Roux 2024-02-14 15:19:21 +01:00
parent 3fccbae676
commit 275cc70e96

View File

@ -161,7 +161,7 @@ export const useAccounts = () => {
export const useHasPermission = (perms?: string[]) => {
const account = useAccount();
if (!perms) return true;
if (!perms || !perms[0]) return true;
// TODO: Read permission of guest account here.
if (!account) return false;