Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: some typos #270

Merged
merged 1 commit into from
Aug 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions casbin/management_enforcer.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def add_grouping_policy(self, *params):
return self.add_named_grouping_policy("g", *params)

def add_grouping_policies(self, rules):
"""adds role inheritance rulea to the current policy.
"""adds role inheritance rules to the current policy.

If the rule already exists, the function returns false for the corresponding policy rule and the rule will not be added.
Otherwise the function returns true for the corresponding policy rule by adding the new rule.
Expand Down Expand Up @@ -241,7 +241,7 @@ def add_named_grouping_policy(self, ptype, *params):
return rule_added

def add_named_grouping_policies(self, ptype, rules):
""" "adds named role inheritance rules to the current policy.
"""adds named role inheritance rules to the current policy.

If the rule already exists, the function returns false for the corresponding policy rule and the rule will not be added.
Otherwise the function returns true for the corresponding policy rule by adding the new rule."""
Expand All @@ -256,7 +256,7 @@ def remove_grouping_policy(self, *params):
return self.remove_named_grouping_policy("g", *params)

def remove_grouping_policies(self, rules):
"""removes role inheritance rulea from the current policy."""
"""removes role inheritance rules from the current policy."""
return self.remove_named_grouping_policies("g", rules)

def remove_filtered_grouping_policy(self, field_index, *field_values):
Expand Down
4 changes: 2 additions & 2 deletions casbin/synced_enforcer.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ def remove_named_policies(self, ptype, rules):
return self._e.remove_named_policies(ptype, rules)

def add_grouping_policies(self, rules):
"""adds role inheritance rulea to the current policy.
"""adds role inheritance rules to the current policy.

If the rule already exists, the function returns false for the corresponding policy rule and the rule will not be added.
Otherwise the function returns true for the corresponding policy rule by adding the new rule.
Expand All @@ -604,7 +604,7 @@ def add_named_grouping_policies(self, ptype, rules):
return self._e.add_named_grouping_policies(ptype, rules)

def remove_grouping_policies(self, rules):
"""removes role inheritance rulea from the current policy."""
"""removes role inheritance rules from the current policy."""
with self._wl:
return self._e.addremove_grouping_policies_policies(rules)

Expand Down