Fixed NULL pointer on find current user permissions