Changed permission check