Added group permission checking