Skip to content

Commit

Permalink
Fix access function
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsuresh committed Jan 23, 2025
1 parent 19c420b commit 71f54fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mlc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1186,8 +1186,8 @@ def get_action(target):

def access(i):
action = i['action']
automation = i['automation']
action_class = get_action(automation)
target = i.get('target', i['automation'])
action_class = get_action(target)
r = action_class.access(i)
return r

Expand Down

0 comments on commit 71f54fb

Please sign in to comment.