fix(rewrite): add access granted