Skip to content

Commit ad6268e

Browse files
authored
fix: bug when match functions used in model.conf (#154)
- add: load match functions to function map in method m_enforce() Fix: #140 Signed-off-by: noob20000405 <[email protected]>
1 parent d939e45 commit ad6268e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

casbin/enforcer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ namespace casbin {
3939
bool Enforcer::m_enforce(const std::string& matcher, Scope scope) {
4040
m_func_map.scope = scope;
4141
m_func_map.func_list.clear();
42+
m_func_map.LoadFunctionMap();
4243

4344
if(!m_enabled)
4445
return true;

0 commit comments

Comments
 (0)