mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-24 16:57:30 +00:00
feat(frontend): improve comms around danger of staff users (#11659)
* docs: add more details around staff / superuser roles and their dangers * make clear that staff users are dangerous * make distinction clearer in API * add error code and frontend warning about running with staff / admin user * fix test * bump api * adapt banner warning * make banner locally disableable * add global option to disable elevated user alert
This commit is contained in:
1 parent
d358001827
commit
e91f306245
13 files changed
+65
-32
No files matched your search
@@ -37,9 +37,10 @@ class UserAPITests(InvenTreeAPITestCase):
|
||||
fields['is_active']['help_text'], 'Is this user account active'
|
||||
)
|
||||
|
||||
self.assertEqual(fields['is_staff']['label'], 'Staff')
|
||||
self.assertEqual(fields['is_staff']['label'], 'Administrator')
|
||||
self.assertEqual(
|
||||
fields['is_staff']['help_text'], 'Does this user have staff permissions'
|
||||
fields['is_staff']['help_text'],
|
||||
'Does this user have administrative permissions',
|
||||
)
|
||||
|
||||
def test_api_url(self):
|
||||
|
||||
Reference in new issue
Block a user