Failed Anonymous check, even though logged in with II

Hey all,

We just deployed a canister on IC and there is a update method (createProject) which checks and fails anonymous callers.

I tried to call the function after logging in with my II on the Candid UI. But it rejects me by thinking I am an anon.
(Screenshots attached)

Any help is much appreciated!


Complete Code is here

That’s not what your code says. Your code is assert Principal.isAnonymous(caller), meaning you only proceed if the caller is the anonymous principal

1 Like

oh shhh… yup I overlooked it …had to add a not before