mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 04:55:44 +00:00
Fix common spelling mistakes (#4956)
* add codespell * first fixes * doc fixes * fix docstrings and comments * functional changes * docstrings again * and docs again * rename args * add ignore * use pre-commit for filtering instead * ups * fix typo in filter
This commit is contained in:
@ -98,7 +98,7 @@ class RoleGroupAdmin(admin.ModelAdmin): # pragma: no cover
|
||||
break
|
||||
|
||||
def append_permission_level(permission_level, next_level):
|
||||
"""Appen permission level"""
|
||||
"""Append permission level"""
|
||||
if not permission_level:
|
||||
return next_level
|
||||
|
||||
|
@ -303,7 +303,7 @@ class RuleSet(models.Model):
|
||||
return self.name
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
"""Intercept the 'save' functionality to make addtional permission changes:
|
||||
"""Intercept the 'save' functionality to make additional permission changes:
|
||||
|
||||
It does not make sense to be able to change / create something,
|
||||
but not be able to view it!
|
||||
@ -355,7 +355,7 @@ def update_group_roles(group, debug=False):
|
||||
This function is called under the following conditions:
|
||||
|
||||
a) Whenever the InvenTree database is launched
|
||||
b) Whenver the group object is updated
|
||||
b) Whenever the group object is updated
|
||||
|
||||
The RuleSet model has complete control over the permissions applied to any group.
|
||||
"""
|
||||
|
Reference in New Issue
Block a user