Why Parse.User.current() is null?

I have the following query, my application has 2 types of users administrator and collaborator. I am currently programming the administrator profile, where only he can add new employees and dividing by departments. My problem is with permissions I can not get any data, even though I have defined the administrator can.

When I print in Parse.User.current (console), the result is "null"

Greetings .. :)

Upvotes: 1

Views: 317

Answers (1)

Ahmed Roshdy
Ahmed Roshdy

Reputation: 421

There is a mistake in the syntax, it should be console.info(Parse.User.current()) not Parse.User.current (console)

Upvotes: 1

Related Questions