Commit Graph

5667 Commits

Author SHA1 Message Date
Jeremy Stretch
bf7071ff3b Correct test method name 2020-06-05 09:19:31 -04:00
Jonathan Senecal
4c310e89e1 Add the label to the string representation 2020-06-04 17:11:27 -04:00
Jonathan Senecal
b561c0bb76 Add label to Interface serializers 2020-06-04 16:50:51 -04:00
Jeremy Stretch
02f3dc4cdd Update circuits API tests to use APIViewTestCases 2020-06-04 16:47:15 -04:00
Jeremy Stretch
c753a30dfd Introduce APIViewTestCases for standardized API view testing 2020-06-04 16:45:03 -04:00
Jonathan Senecal
1a2c51202b Add label to interface models 2020-06-04 16:44:25 -04:00
Jeremy Stretch
14bcd3f353 Merge pull request #4719 from netbox-community/4715-avoid-unnecessary-queries
Fixes #4715: Avoid unnecessary queries in Cable.from_db
2020-06-04 13:13:17 -04:00
Jeremy Stretch
ba0746e027 Closes #4698: Improve display of template code for object in admin UI 2020-06-04 13:11:24 -04:00
Sander Steffann
0c91682c39 Avoid unnecessary queries in Cable.from_db 2020-06-04 17:46:09 +02:00
Jeremy Stretch
50a9b810b1 Add local_requirements.txt to .gitignore 2020-06-04 11:44:16 -04:00
Daniel Sheppard
0ba253a13b #4674 - Correct many=False to many=True on the response serializers 2020-06-04 09:42:00 -05:00
Daniel Sheppard
7136fcffc1 #4674 - Fix available-ips and available-prefixes swagger definitions 2020-06-04 09:35:58 -05:00
Jeremy Stretch
8bb8039163 Update LDAP configuration documentation 2020-06-03 15:57:11 -04:00
Jeremy Stretch
6c25193b04 Move LDAP authentication support to LDAPBackend 2020-06-03 15:42:24 -04:00
Jeremy Stretch
ccce836e02 Dropped backward compatibility for the /admin/webhook-backend-status URL 2020-06-03 14:15:29 -04:00
Jeremy Stretch
324aefeeef Dropped backward compatibility for 'webhooks' Redis queue 2020-06-03 14:13:18 -04:00
Jeremy Stretch
91af5a056c Merge pull request #4705 from netbox-community/554-object-permissions
Closes #554: Implement object-based permissions
2020-06-03 13:29:16 -04:00
Jeremy Stretch
91d276401a Split ObjectPermission model documentation 2020-06-03 13:20:35 -04:00
Jeremy Stretch
516927ae3a Add REST API endpoint for ObjectPermissions 2020-06-03 13:08:04 -04:00
Jeremy Stretch
0240107c1d Update permissions documentation 2020-06-03 10:03:15 -04:00
Jeremy Stretch
a71d18fbe3 Rename attrs to constraints 2020-06-03 09:43:46 -04:00
Jeremy Stretch
2adcefe54d Rename content_types to object_types 2020-06-03 09:27:20 -04:00
Jeremy Stretch
cc1acfb633 Uodate script and report views to use ObjectPermissionRequiredMixin 2020-06-02 15:40:39 -04:00
Jeremy Stretch
931a121eb7 Remove delete_token permission from TokenDeleteView 2020-06-02 15:36:31 -04:00
Jeremy Stretch
b8c048995f Update VirtualChassis views to support ObjectPermissions 2020-06-02 15:33:41 -04:00
Jeremy Stretch
779f75904b Change CableCreateView to use ObjectEditView 2020-06-02 15:15:57 -04:00
Jeremy Stretch
d5f57a41f0 Update ObjectImportView to support ObjectPermissions 2020-06-02 14:23:04 -04:00
Jeremy Stretch
e50c4e50ee Fixes #4707: Fix prefix_count population on VLAN API serializer 2020-06-02 13:40:14 -04:00
Jeremy Stretch
3c03a66f2b Admin UI improvements 2020-06-02 13:21:58 -04:00
Jeremy Stretch
cd2ab9f1af Accomodate custom legacy permission in schema migration 2020-06-02 10:50:58 -04:00
Jeremy Stretch
fe00577020 Remove activate_userkey permission 2020-06-02 09:51:56 -04:00
Jeremy Stretch
115fbecb44 Update custom napalm_read, napalm_write permissions 2020-06-02 09:46:32 -04:00
Jeremy Stretch
f04faee88a Clean up permissions utility functions 2020-06-02 09:31:59 -04:00
Jeremy Stretch
6db6d9e6ce Fix external auth permissions test 2020-06-01 16:46:14 -04:00
Jeremy Stretch
438c3de5b4 Changelog for #554 2020-06-01 16:30:20 -04:00
Jeremy Stretch
96cc46588a Support permission attribute assignment via REMOTE_AUTH_DEFAULT_PERMISSIONS 2020-06-01 16:23:45 -04:00
Jeremy Stretch
fbd484a739 Drafted documentation for object-based permissions 2020-06-01 15:28:36 -04:00
Jeremy Stretch
91ec805369 Fix ordering of group and user fields in ObjectPermission admin 2020-06-01 13:59:58 -04:00
Jeremy Stretch
3796d5e32c Move authentication backends 2020-06-01 13:47:34 -04:00
Jeremy Stretch
d3868807db Restrict querysets for home, search views 2020-06-01 13:36:57 -04:00
Jeremy Stretch
f523f9a97d Call permission_is_exempt() to check for exempt permissions 2020-06-01 13:17:59 -04:00
Jeremy Stretch
59cb0e995a Refine queryset restriction logic 2020-06-01 13:09:34 -04:00
Jeremy Stretch
131b317dad Add permission_is_exempt() 2020-06-01 12:31:18 -04:00
Jeremy Stretch
9a1d62db2b Update views to restrict all querysets 2020-06-01 11:43:49 -04:00
Jeremy Stretch
92ffe54214 Tweak restrict() to accept only an action keyword 2020-06-01 10:45:49 -04:00
Jeremy Stretch
13d0e01a23 Fixes #4702: Catch IntegrityError exception when adding a non-unique secret 2020-06-01 10:00:32 -04:00
Jeremy Stretch
6948230dea Fixes #4704: Update example template code 2020-06-01 09:40:58 -04:00
Jeremy Stretch
55cc22f41a Implement RestrictedQuerySet as a manager 2020-05-29 16:27:36 -04:00
Jeremy Stretch
10ab884671 Move restrict_queryset() function to RestrictedQuerySet 2020-05-29 15:09:08 -04:00
Jeremy Stretch
aefeb711a7 Introduce restrict_queryset() 2020-05-29 14:12:24 -04:00