refactor: use object in PermCheck task