Added user permission checking for security when saving captions