From e2edef0af2bc74d6ed5f7fefd17fc836f9e4ead9 Mon Sep 17 00:00:00 2001 From: RobbieHan Date: Fri, 16 Nov 2018 20:15:05 +0800 Subject: [PATCH] rbac config --- .idea/workspace.xml | 515 +++++++++--------- apps/__pycache__/custom.cpython-36.pyc | Bin 2340 -> 2340 bytes .../__pycache__/middleware.cpython-36.pyc | Bin 0 -> 3537 bytes apps/system/__pycache__/models.cpython-36.pyc | Bin 3643 -> 3751 bytes apps/system/__pycache__/urls.cpython-36.pyc | Bin 2294 -> 2294 bytes .../__pycache__/views_menu.cpython-36.pyc | Bin 1052 -> 1382 bytes .../__pycache__/views_role.cpython-36.pyc | Bin 4662 -> 4662 bytes apps/system/middleware.py | 100 ++++ .../migrations/0002_auto_20181115_2124.py | 22 + .../0002_auto_20181115_2124.cpython-36.pyc | Bin 0 -> 704 bytes apps/system/models.py | 7 +- apps/system/views_menu.py | 10 +- db.sqlite3 | Bin 208896 -> 221184 bytes sandboxMP/__pycache__/settings.cpython-36.pyc | Bin 2517 -> 2689 bytes sandboxMP/settings.py | 12 + templates/base-left.html | 36 +- templates/head-footer.html | 10 +- templates/system/menu_form.html | 11 +- templates/system/menu_update.html | 11 +- templates/system/role.html | 6 + templates/system/structure/structure.html | 7 + templates/system/users/user.html | 8 + 22 files changed, 477 insertions(+), 278 deletions(-) create mode 100644 apps/system/__pycache__/middleware.cpython-36.pyc create mode 100644 apps/system/middleware.py create mode 100644 apps/system/migrations/0002_auto_20181115_2124.py create mode 100644 apps/system/migrations/__pycache__/0002_auto_20181115_2124.cpython-36.pyc diff --git a/.idea/workspace.xml b/.idea/workspace.xml index b33ee44..8e4c321 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,10 +2,19 @@ - - + + + + + + + + + + + - - + + - - + + - + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - + + + - + - - + + + + + + + + + + + + + + + + + + + + + + @@ -92,8 +95,8 @@ @@ -109,9 +112,6 @@ @@ -193,7 +199,6 @@ - @@ -211,23 +216,18 @@ - - - - - - - +
- +
@@ -43,7 +43,12 @@
- +
+
+ +
+ +
diff --git a/templates/system/menu_update.html b/templates/system/menu_update.html index 8b8edc6..f773639 100644 --- a/templates/system/menu_update.html +++ b/templates/system/menu_update.html @@ -18,9 +18,9 @@
- +
- +
@@ -32,6 +32,7 @@
+
+ +
+ +
+