Commit Graph

5301 Commits

Author SHA1 Message Date
Jeremy Stretch
27370e0703 Add web UI view tests for object-level permissions 2020-05-20 13:35:54 -04:00
Jeremy Stretch
fa4cadca7b Enforce object-level permissions for API views 2020-05-14 17:44:46 -04:00
Jeremy Stretch
2168eba149 Bypass permission caching for anonymous users 2020-05-14 17:44:15 -04:00
Jeremy Stretch
5c754a1b66 Add object-level support to TokenPermissions 2020-05-14 13:49:52 -04:00
Jeremy Stretch
958ec982a8 ObjectPermissionRequiredMixin should exempt superusers 2020-05-12 17:00:03 -04:00
Jeremy Stretch
b92ce6cc60 Fix ObjectPermission attribute consolidation 2020-05-12 16:51:46 -04:00
Jeremy Stretch
b586a04652 Reimplement the ViewExemptModelBackend to explicitly cache all exempted view permissions on the User instance 2020-05-12 16:07:07 -04:00
Jeremy Stretch
39ef7d97d5 Cache object-level permissions on the User instance for evaluation 2020-05-12 15:42:44 -04:00
Jeremy Stretch
b8572f8c55 Always pass obj=None to ModelBackend 2020-05-11 17:19:11 -04:00
Jeremy Stretch
ea21567ed6 Implement ObjectPermissionManager 2020-05-11 16:02:42 -04:00
Jeremy Stretch
b3dc7d5b70 Merge branch 'develop-2.9' into 554-object-permissions 2020-05-11 12:48:36 -04:00
Jeremy Stretch
17692bc2cc #4624: Refactor ObjectDeleteView to use a queryset 2020-05-11 12:47:01 -04:00
Jeremy Stretch
1b33b94d3d #4624: Refactor ObjectEditView to use a queryset 2020-05-11 12:37:22 -04:00
Jeremy Stretch
ca3bb7a398 Introduced ObjectPermissionRequiredMixin 2020-05-11 11:51:11 -04:00
Jeremy Stretch
cf9dbae6b0 Initial work on #554 (WIP) 2020-05-08 17:30:25 -04:00
Jeremy Stretch
d25e545163 Fix version 2020-05-06 15:20:28 -04:00
Jeremy Stretch
77700434f9 Post-release version bump 2020-05-06 15:17:06 -04:00
Jeremy Stretch
797c1c0e4c Release v2.8.2 2020-05-06 15:04:01 -04:00
Jeremy Stretch
54d9858dfb Update release notes index 2020-05-06 15:03:35 -04:00
Jeremy Stretch
9c4796db4a Fixes #4588: Restore ability to add/remove tags on services, virtual chassis in bulk 2020-05-06 15:00:01 -04:00
Jeremy Stretch
aecc00a353 Closes #3064: Include tags in object lists as a toggleable table column 2020-05-06 14:42:51 -04:00
Jeremy Stretch
7a771fbddc Cosmetic tweaks to the user area 2020-05-06 13:25:17 -04:00
Jeremy Stretch
cc9f66e46f Changelog for #4584 2020-05-06 12:49:04 -04:00
Jeremy Stretch
960e288d8a Merge pull request #4586 from netbox-community/4584-id-filters
Fixes #4584
2020-05-06 12:47:38 -04:00
Jeremy Stretch
e4939d2450 Updated REST API documentation 2020-05-06 12:46:24 -04:00
Jeremy Stretch
7db26698d6 Ensure all model FilterSets support the 'id' field 2020-05-06 12:33:52 -04:00
Jeremy Stretch
9b89b4a6ca Update super() call for get_filters() 2020-05-06 11:47:05 -04:00
Jeremy Stretch
de6b26f8d7 Changelog for #3147 2020-05-06 10:16:23 -04:00
Jeremy Stretch
517704def3 Merge pull request #4564 from netbox-community/3147-csv-import-fields
Closes #3147: Allow dynamic access to related objects during CSV import
2020-05-06 10:15:00 -04:00
Jeremy Stretch
f3d019af48 Remove boilerplate error messages from CSV model choice fields 2020-05-06 09:58:12 -04:00
Jeremy Stretch
3b12b9ce37 Introduce CSVModelChoiceField to provide better validation for CSV model choices 2020-05-06 09:43:10 -04:00
Jeremy Stretch
a378c688e7 Extend tests for CSV import 2020-05-05 16:49:16 -04:00
Jeremy Stretch
f11d52b95d Introduce CSVModelForm for dynamic CSV imports 2020-05-05 16:15:09 -04:00
Jeremy Stretch
478d24d3e7 Fixes #4578: Prevent setting 0U height on device type with racked instances 2020-05-05 13:41:23 -04:00
Jeremy Stretch
9e20a93234 Fixes #4652: Update repo RPM link for PosgtreSQL on CentOS 2020-05-05 13:05:54 -04:00
Jeremy Stretch
1c32d3f8ff Remove example choices from CSV import form 2020-05-04 16:30:21 -04:00
Jeremy Stretch
9671d259ab Changelog for #492 2020-05-04 15:14:52 -04:00
Jeremy Stretch
00e4fb0e78 Merge pull request #4555 from netbox-community/492-table-column-ordering
Closes #492: Table column ordering
2020-05-04 15:12:29 -04:00
Jeremy Stretch
7b6af6953a Fix group column on RackTable 2020-05-04 14:56:29 -04:00
Jeremy Stretch
dcfed13e31 Remove descriptions from interface connections list 2020-05-04 14:10:40 -04:00
Jeremy Stretch
605b506b3d Enable dynamic queryset field prefetching based on table columns 2020-05-04 14:08:11 -04:00
koratfood
88c3cce392 Replace supervisord with systemd in LDAP troubleshooting (#4569)
Update the LDAP troubleshooting steps so that they are consistent with the rest of the documentaiton, which nowadays expects us to be running netbox via systemd instead of supervisord. Fixes #4504.
2020-05-04 09:56:03 -04:00
Jeremy Stretch
a0136223f9 Clean up CSV import table 2020-05-01 16:01:55 -04:00
Jeremy Stretch
079d6b6ea3 Clean up comments 2020-05-01 16:01:30 -04:00
Jeremy Stretch
1cc2659557 Update help_texts for models, import forms 2020-05-01 15:40:34 -04:00
Jeremy Stretch
3536882d4a Overhaul CSV import template 2020-05-01 14:26:04 -04:00
Jeremy Stretch
c7f83ac515 Removed FlexibleModelChoiceField 2020-05-01 13:40:52 -04:00
Jeremy Stretch
445bbaee68 Add tests for CSVDataField 2020-05-01 13:32:28 -04:00
Jeremy Stretch
c6caf64b57 Enable the specifcation of related objects by arbitrary attribute during CSV import 2020-05-01 12:18:04 -04:00
Jeremy Stretch
98707cd401 Fix tests for #4502 2020-04-30 15:43:33 -04:00