Skip to content

Commit 7705e25

Browse files
authored
fix: some typos (#270)
1 parent a27eac1 commit 7705e25

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

casbin/management_enforcer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def add_grouping_policy(self, *params):
213213
return self.add_named_grouping_policy("g", *params)
214214

215215
def add_grouping_policies(self, rules):
216-
"""adds role inheritance rulea to the current policy.
216+
"""adds role inheritance rules to the current policy.
217217
218218
If the rule already exists, the function returns false for the corresponding policy rule and the rule will not be added.
219219
Otherwise the function returns true for the corresponding policy rule by adding the new rule.
@@ -241,7 +241,7 @@ def add_named_grouping_policy(self, ptype, *params):
241241
return rule_added
242242

243243
def add_named_grouping_policies(self, ptype, rules):
244-
""" "adds named role inheritance rules to the current policy.
244+
"""adds named role inheritance rules to the current policy.
245245
246246
If the rule already exists, the function returns false for the corresponding policy rule and the rule will not be added.
247247
Otherwise the function returns true for the corresponding policy rule by adding the new rule."""
@@ -256,7 +256,7 @@ def remove_grouping_policy(self, *params):
256256
return self.remove_named_grouping_policy("g", *params)
257257

258258
def remove_grouping_policies(self, rules):
259-
"""removes role inheritance rulea from the current policy."""
259+
"""removes role inheritance rules from the current policy."""
260260
return self.remove_named_grouping_policies("g", rules)
261261

262262
def remove_filtered_grouping_policy(self, field_index, *field_values):

casbin/synced_enforcer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ def remove_named_policies(self, ptype, rules):
587587
return self._e.remove_named_policies(ptype, rules)
588588

589589
def add_grouping_policies(self, rules):
590-
"""adds role inheritance rulea to the current policy.
590+
"""adds role inheritance rules to the current policy.
591591
592592
If the rule already exists, the function returns false for the corresponding policy rule and the rule will not be added.
593593
Otherwise the function returns true for the corresponding policy rule by adding the new rule.
@@ -604,7 +604,7 @@ def add_named_grouping_policies(self, ptype, rules):
604604
return self._e.add_named_grouping_policies(ptype, rules)
605605

606606
def remove_grouping_policies(self, rules):
607-
"""removes role inheritance rulea from the current policy."""
607+
"""removes role inheritance rules from the current policy."""
608608
with self._wl:
609609
return self._e.addremove_grouping_policies_policies(rules)
610610

0 commit comments

Comments
 (0)