Add push and pull permissions check