56765d3f5a
Fix for unit testing
2020-11-11 15:19:15 +11:00
5567ad07fd
Update tests and translations
2020-11-11 00:31:39 +11:00
4dff18e4a6
Remove common_currency model entirely
...
- A lot of views / pages / etc needed to be updated too
- Now uses django-money fields entirely
- Create a manual rate exchange backend (needs more work!)
2020-11-11 00:21:06 +11:00
684db67733
Added check for remove too
2020-11-05 09:37:01 -05:00
0b76d1d036
Check if permission is not NoneType before adding to group
2020-11-05 09:34:18 -05:00
b1885138de
Merge branch 'master' into categories_parameters
2020-11-03 07:01:56 -05:00
083dac1300
Merge remote-tracking branch 'inventree/master' into build-fixes
2020-11-03 21:26:39 +11:00
1c503adced
Merge pull request #1026 from eeintech/user_unique_group_validation
...
Added check for multiple groups assigned to user
2020-11-03 21:21:08 +11:00
2b91f69c7d
Fix unit tests
2020-11-03 20:19:24 +11:00
5310ce8465
First step into managing Category Parameters to InvenTree settings
2020-10-30 17:17:18 -05:00
0b26d68d0f
Added admin view, improved validation of part related relationship
2020-10-16 15:29:58 -05:00
01eee4d208
Fixed style
2020-10-06 10:40:58 -05:00
8499ced636
Changed from validation error to warning message when group instance is saved
2020-10-06 10:38:06 -05:00
19a2326638
Merge branch 'master' of git://github.com/inventree/InvenTree into user_unique_group_validation
2020-10-06 10:04:35 -05:00
1c97aaf87a
Set permissions for order views
2020-10-06 19:46:53 +11:00
88f73443ee
Yet more style fixes
2020-10-06 16:43:39 +11:00
77a2b6de8b
Merge branch 'part-permissions' of https://github.com/SchrodingersGat/InvenTree into part-permissions
2020-10-06 16:03:33 +11:00
b3e4efd96e
Unit testing fixes
2020-10-06 16:03:19 +11:00
e076470305
Merge branch 'master' into part-permissions
2020-10-06 12:35:45 +11:00
d691b15f4b
Fix conflicts
2020-10-06 12:34:30 +11:00
dc2c9aa662
Add InvenTreeRoleMixin
...
- Simplifies permission requirements for views
- e.g. 'part.view' rather than 'part.view_partcategory'
2020-10-06 11:29:38 +11:00
556ffa1099
Change label for permissions to match django permission names
2020-10-06 09:28:05 +11:00
911b23ca24
Added validation logic for user list to Group admin form
2020-10-05 13:12:52 -05:00
d980da7247
Fixed permission assign test unit
2020-10-05 10:52:47 -05:00
c910307ce5
Only saving Group model rulesets on instance creation and when inlines are saved
2020-10-05 10:04:54 -05:00
806a7f961d
Fixes for role permissions
...
- Fixed a strange interaction if multiple rulesets referred to the same models
- Order of operations was incorrect.
- Now is good? Yes!
2020-10-05 22:57:05 +11:00
898c604b3b
Fix incorrect permission names
...
- Uses the app_model name, *NOT* the name of the database table
- Adds extra tests to ensure that permissions get assigned and removed correctly
2020-10-05 08:55:15 +11:00
095ef51991
Cleanup unit testing
2020-10-05 08:29:36 +11:00
fb09f53dc9
Add missing migration file
2020-10-04 12:58:45 +11:00
929411e49a
Remove "general" ruleset
2020-10-04 12:53:24 +11:00
31b699d521
Hide "user permissions" view from the admin interface
2020-10-04 12:47:19 +11:00
cda52a58e3
Remove manual 'permissions' control from groups admin interface
...
- Does not actually *do* anything any more as the RuleSet approach overrides it anyway
2020-10-04 12:19:56 +11:00
c19c014f55
Add or remove permissions from groups as defined by the RuleSet links
...
- Only runs when the group is changed
- Does not add permissions if they already exist
- Does not remove permissions if they do not exist
2020-10-04 12:18:31 +11:00
d5c0c12d78
Add some more unit testing
...
- ALL models must be covered by rulesets
- Added a RULESET_IGNORE list for models we do not want permissions for
2020-10-04 11:03:14 +11:00
c09b4980ad
PEP fixes
2020-10-04 00:43:02 +10:00
1ded9e1fc0
Add a warning showing which databases tables are not covered by defined rulesets
2020-10-04 00:38:53 +10:00
6c2eb959a6
More unit testing
2020-10-04 00:34:22 +10:00
2039100d3e
Add some unit testing
2020-10-04 00:24:48 +10:00
6bc5fe2497
Tab fix
2020-10-04 00:03:10 +10:00
9e4cc73b1c
Add migration files
2020-10-04 00:01:18 +10:00
16f1b4c784
Add hook to update group permission roles
...
(doesn't do anything yet)
2020-10-03 23:45:24 +10:00
bedda66949
Add custom admin view for the "Group" model
...
- Ref: https://github.com/Microdisseny/django-groupadmin-users
- Adds ability to edit users within a particular group from the group admin page!
2020-10-03 17:37:20 +10:00
6e3f603413
Improvements for token authentication
...
- Do not POST username and password data
- This is already encoded in the Authorization: Basic headers
2020-04-18 12:06:50 +10:00
576226ad30
Tests for retrieving user auth tokens
2019-09-07 23:41:15 +10:00
8949542baf
fixed response text
2019-08-28 12:53:08 +02:00
0a6abd21be
fixed responde text
2019-08-28 12:47:56 +02:00
3c70c3a29c
clean
2019-08-28 12:41:46 +02:00
981884f368
test
2019-08-28 12:40:06 +02:00
5dcfc20d82
test
2019-08-28 12:39:25 +02:00
381e58ab1c
added import
2019-08-28 12:35:00 +02:00