Skip to content

Commit

Permalink
fix: bug when match functions used in model.conf (#154)
Browse files Browse the repository at this point in the history
- add: load match functions to function map in method m_enforce()
Fix: #140

Signed-off-by: noob20000405 <vincent4869code@gmail.com>
  • Loading branch information
noob20000405 authored Oct 7, 2021
1 parent d939e45 commit ad6268e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions casbin/enforcer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ namespace casbin {
bool Enforcer::m_enforce(const std::string& matcher, Scope scope) {
m_func_map.scope = scope;
m_func_map.func_list.clear();
m_func_map.LoadFunctionMap();

if(!m_enabled)
return true;
Expand Down

0 comments on commit ad6268e

Please sign in to comment.