Added permission check for flag link.