diff --git a/docs/img/authorization/loose_policy_anonymous_correct.png b/docs/img/authorization/loose_policy_anonymous_correct.png index a9ee21c2c72fa049ba7c9ff17cdb15201ad8655a..ec908f86c49828c8925e2a9317dae1277f0d0971 100644 Binary files a/docs/img/authorization/loose_policy_anonymous_correct.png and b/docs/img/authorization/loose_policy_anonymous_correct.png differ diff --git a/docs/img/authorization/loose_policy_anonymous_wrong.png b/docs/img/authorization/loose_policy_anonymous_wrong.png index 8f5de26e87112c7cb9402492d41d1c3ee10d0ee6..70098871152363a9009c2d092c1f956237814d94 100644 Binary files a/docs/img/authorization/loose_policy_anonymous_wrong.png and b/docs/img/authorization/loose_policy_anonymous_wrong.png differ diff --git a/docs/img/authorization/loose_policy_no_perms_correct.png b/docs/img/authorization/loose_policy_no_perms_correct.png index 97f3b6613d3c56f3910262397e289afd252e1fef..ed37cb47e0c327e767dc9f1e00c4a2da851ffa14 100644 Binary files a/docs/img/authorization/loose_policy_no_perms_correct.png and b/docs/img/authorization/loose_policy_no_perms_correct.png differ diff --git a/docs/img/authorization/loose_policy_no_perms_wrong.png b/docs/img/authorization/loose_policy_no_perms_wrong.png index 017209392552413753bf10b394db597f336340ea..7ebb4b8e2f31b1ca16de25242d17b89444b40990 100644 Binary files a/docs/img/authorization/loose_policy_no_perms_wrong.png and b/docs/img/authorization/loose_policy_no_perms_wrong.png differ diff --git a/docs/img/authorization/loose_policy_superuser_correct.png b/docs/img/authorization/loose_policy_superuser_correct.png index 08b7b12c2a912bd6c40e6e1934fb5837b542155d..965db2b94980f690ec3378b9ca8b31c32ad2ac64 100644 Binary files a/docs/img/authorization/loose_policy_superuser_correct.png and b/docs/img/authorization/loose_policy_superuser_correct.png differ diff --git a/docs/img/authorization/loose_policy_superuser_wrong.png b/docs/img/authorization/loose_policy_superuser_wrong.png index 08b7b12c2a912bd6c40e6e1934fb5837b542155d..965db2b94980f690ec3378b9ca8b31c32ad2ac64 100644 Binary files a/docs/img/authorization/loose_policy_superuser_wrong.png and b/docs/img/authorization/loose_policy_superuser_wrong.png differ diff --git a/docs/img/authorization/loose_policy_with_perms_correct.png b/docs/img/authorization/loose_policy_with_perms_correct.png index 1cdd6392d72d28b3c3f5ead86589e94c4d045c14..b80a98738d28d456cbc90d5eea2fec5c65d049e3 100644 Binary files a/docs/img/authorization/loose_policy_with_perms_correct.png and b/docs/img/authorization/loose_policy_with_perms_correct.png differ diff --git a/docs/img/authorization/loose_policy_with_perms_wrong.png b/docs/img/authorization/loose_policy_with_perms_wrong.png index 1cdd6392d72d28b3c3f5ead86589e94c4d045c14..a5dd6bc41d3d156b347f6ef85eedb86c459fd9d4 100644 Binary files a/docs/img/authorization/loose_policy_with_perms_wrong.png and b/docs/img/authorization/loose_policy_with_perms_wrong.png differ diff --git a/docs/img/authorization/strict_policy_anonymous_correct.png b/docs/img/authorization/strict_policy_anonymous_correct.png index c3910c642c2f7f7ce1f280c7cb78a54887d588f9..d002c47a0d84af906f6f4cbb6cbb07352ae57a51 100644 Binary files a/docs/img/authorization/strict_policy_anonymous_correct.png and b/docs/img/authorization/strict_policy_anonymous_correct.png differ diff --git a/docs/img/authorization/strict_policy_anonymous_wrong.png b/docs/img/authorization/strict_policy_anonymous_wrong.png index b7cf192e03d3772de9196758b656a80bf136fcf0..9413fb55fec3682701f69abfeb819f1ac20f6b38 100644 Binary files a/docs/img/authorization/strict_policy_anonymous_wrong.png and b/docs/img/authorization/strict_policy_anonymous_wrong.png differ diff --git a/docs/img/authorization/strict_policy_no_perms_correct.png b/docs/img/authorization/strict_policy_no_perms_correct.png index 07da97964f8a2aa10e2fcab6fd23e07a1bd2b4fd..b64a4bd1f0cbc4616450df927f7abe6f856c00eb 100644 Binary files a/docs/img/authorization/strict_policy_no_perms_correct.png and b/docs/img/authorization/strict_policy_no_perms_correct.png differ diff --git a/docs/img/authorization/strict_policy_no_perms_wrong.png b/docs/img/authorization/strict_policy_no_perms_wrong.png index 41c15b77973ad087ab70e06091a6ea661ce380be..ba6365189960f507c99f973bd8210af910cddb2c 100644 Binary files a/docs/img/authorization/strict_policy_no_perms_wrong.png and b/docs/img/authorization/strict_policy_no_perms_wrong.png differ diff --git a/docs/img/authorization/strict_policy_superuser_correct.png b/docs/img/authorization/strict_policy_superuser_correct.png index c0c90f1eeeb828ade8617c5756bad7a6674d36e1..965db2b94980f690ec3378b9ca8b31c32ad2ac64 100644 Binary files a/docs/img/authorization/strict_policy_superuser_correct.png and b/docs/img/authorization/strict_policy_superuser_correct.png differ diff --git a/docs/img/authorization/strict_policy_superuser_wrong.png b/docs/img/authorization/strict_policy_superuser_wrong.png index c0c90f1eeeb828ade8617c5756bad7a6674d36e1..965db2b94980f690ec3378b9ca8b31c32ad2ac64 100644 Binary files a/docs/img/authorization/strict_policy_superuser_wrong.png and b/docs/img/authorization/strict_policy_superuser_wrong.png differ diff --git a/docs/img/authorization/strict_policy_with_perms_correct.png b/docs/img/authorization/strict_policy_with_perms_correct.png index d8e809b2b1b0595c954f98dfa63ad19112c99d3a..703b283c54b4decf018715affa88254b6a8b32e2 100644 Binary files a/docs/img/authorization/strict_policy_with_perms_correct.png and b/docs/img/authorization/strict_policy_with_perms_correct.png differ diff --git a/docs/img/authorization/strict_policy_with_perms_wrong.png b/docs/img/authorization/strict_policy_with_perms_wrong.png index f66d7681a5bcce7d7d55ea61bcf38016ca5dd90b..a461bdf04337d1320f736f1979dd38a8dc39e73a 100644 Binary files a/docs/img/authorization/strict_policy_with_perms_wrong.png and b/docs/img/authorization/strict_policy_with_perms_wrong.png differ diff --git a/docs/source/authorization/function_views.rst b/docs/source/authorization/function_views.rst index cc34c2a7fb577f80684c8e7f20c5ab4de7673184..9a75eaa4b2aad93112d218c3ae2a9603e2011b25 100644 --- a/docs/source/authorization/function_views.rst +++ b/docs/source/authorization/function_views.rst @@ -357,7 +357,7 @@ The pages in our example are now displaying as they're supposed to be. Strict Decorator Example ------------------------ -In this example there are four routes, views, and sidebar entries. To +In this example there are five routes, views, and sidebar entries. To demonstrate how our package works, we intentionally mess up the **Sample2** and **Demo CSS** routes at first, then show how to correct it. The views are as follows: @@ -491,7 +491,6 @@ Below is all the code required to generate these views. return render(request, 'adminlte2/sample2.html', {}) - @login_required() def demo_css(request): """Show examples of extra-features.css""" return render(request, 'adminlte2/demo_css.html', { @@ -506,8 +505,8 @@ Below is all the code required to generate these views. As seen in the following screenshots, the **Home** route still works and the user still has access to it. - This is because the **Home** route is one of the routes that automatically - included as part of the + This is because the **Home** route is one of the routes that is + automatically included as part of the :ref:`configuration/authorization:adminlte2_strict_policy_whitelist`. .. image:: ../../img/authorization/strict_policy_anonymous_wrong.png