casbin/persist/file_adapter/filtered_file_adapter.cpp
void FilteredFileAdapter :: SavePolicy(const std::shared_ptr<Model>& model) {
    if (this->filtered) {
        throw CasbinAdapterException("Cannot save a filtered policy");
    }
    this->SavePolicy(model);
}
// SavePolicy saves all policy rules to the storage.
SavePolicy saves all policy rules to the storage.
SavePolicy saves all policy rules to the storage .
void FilteredFileAdapter :: SavePolicy(const std::shared_ptr<Model>& model) {
    if (this->filtered) {
        throw CasbinAdapterException("Cannot save a filtered policy");
    }
    this->SavePolicy(model);
}
void FilteredFileAdapter :: SavePolicy ( const std :: shared_ptr < Model > & model ) { if ( this -> filtered ) { throw CasbinAdapterException ( " " ) ; } this -> SavePolicy ( model ) ; }
SavePolicy saves all policy rules to the storage.
SavePolicy saves all policy rules to the storage .