Dependency injection in permission callbacks