mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-01 09:31:34 +00:00
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037
This commit is contained in:
.github/workflows
InvenTree
InvenTree
common
config_template.yamllocale
de
LC_MESSAGES
el
LC_MESSAGES
es
LC_MESSAGES
fr
LC_MESSAGES
he
LC_MESSAGES
id
LC_MESSAGES
it
LC_MESSAGES
ja
LC_MESSAGES
ko
LC_MESSAGES
nl
LC_MESSAGES
no
LC_MESSAGES
pl
LC_MESSAGES
ru
LC_MESSAGES
sv
LC_MESSAGES
th
LC_MESSAGES
tr
LC_MESSAGES
vi
LC_MESSAGES
zh
LC_MESSAGES
part
stock
templates
stock
templates
InvenTree
about.htmlaccount
base.htmlemail_confirm.htmllogin.htmllogout.htmlpassword_reset.htmlpassword_reset_from_key.htmlsignup.html
js
modals.htmlnavbar.htmlregistration
logged_out.htmllogin.htmlpassword_reset_complete.htmlpassword_reset_confirm.htmlpassword_reset_done.html
socialaccount
snippets
users
ci
docker
requirements.txt@@ -67,7 +67,12 @@ class RuleSet(models.Model):
|
||||
'report_billofmaterialsreport',
|
||||
'report_purchaseorderreport',
|
||||
'report_salesorderreport',
|
||||
|
||||
'account_emailaddress',
|
||||
'account_emailconfirmation',
|
||||
'sites_site',
|
||||
'socialaccount_socialaccount',
|
||||
'socialaccount_socialapp',
|
||||
'socialaccount_socialtoken',
|
||||
],
|
||||
'part_category': [
|
||||
'part_partcategory',
|
||||
@@ -213,7 +218,10 @@ class RuleSet(models.Model):
|
||||
return True
|
||||
|
||||
# Print message instead of throwing an error
|
||||
logger.info(f"User '{user.name}' failed permission check for {table}.{permission}")
|
||||
name = getattr(user, 'name', user.pk)
|
||||
|
||||
logger.info(f"User '{name}' failed permission check for {table}.{permission}")
|
||||
|
||||
return False
|
||||
|
||||
@staticmethod
|
||||
|
Reference in New Issue
Block a user