Skip to content

Commit

Permalink
fix: add_user_permission with applicale_for arg set not updating in u…
Browse files Browse the repository at this point in the history
…ser permission
  • Loading branch information
vishdha authored and barredterra committed Aug 4, 2022
1 parent f6210e7 commit 9a50c30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frappe/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ def add_user_permission(
for_value=name,
is_default=is_default,
applicable_for=applicable_for,
apply_to_all_doctypes=0 if applicable_for else 1,
hide_descendants=hide_descendants,
)
).insert(ignore_permissions=ignore_permissions)
Expand Down

0 comments on commit 9a50c30

Please sign in to comment.