micro-users 1.8.3__tar.gz → 1.8.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of micro-users might be problematic. Click here for more details.

Files changed (48) hide show
  1. {micro_users-1.8.3 → micro_users-1.8.4}/PKG-INFO +2 -1
  2. {micro_users-1.8.3 → micro_users-1.8.4}/README.md +2 -1
  3. {micro_users-1.8.3 → micro_users-1.8.4}/micro_users.egg-info/PKG-INFO +2 -1
  4. {micro_users-1.8.3 → micro_users-1.8.4}/pyproject.toml +1 -1
  5. {micro_users-1.8.3 → micro_users-1.8.4}/setup.py +1 -1
  6. {micro_users-1.8.3 → micro_users-1.8.4}/users/static/users/js/permissions.js +7 -0
  7. {micro_users-1.8.3 → micro_users-1.8.4}/users/templates/users/manage_users.html +8 -1
  8. {micro_users-1.8.3 → micro_users-1.8.4}/users/templates/users/widgets/grouped_permissions.html +1 -1
  9. {micro_users-1.8.3 → micro_users-1.8.4}/LICENSE +0 -0
  10. {micro_users-1.8.3 → micro_users-1.8.4}/MANIFEST.in +0 -0
  11. {micro_users-1.8.3 → micro_users-1.8.4}/micro_users.egg-info/SOURCES.txt +0 -0
  12. {micro_users-1.8.3 → micro_users-1.8.4}/micro_users.egg-info/dependency_links.txt +0 -0
  13. {micro_users-1.8.3 → micro_users-1.8.4}/micro_users.egg-info/requires.txt +0 -0
  14. {micro_users-1.8.3 → micro_users-1.8.4}/micro_users.egg-info/top_level.txt +0 -0
  15. {micro_users-1.8.3 → micro_users-1.8.4}/setup.cfg +0 -0
  16. {micro_users-1.8.3 → micro_users-1.8.4}/users/__init__.py +0 -0
  17. {micro_users-1.8.3 → micro_users-1.8.4}/users/admin.py +0 -0
  18. {micro_users-1.8.3 → micro_users-1.8.4}/users/apps.py +0 -0
  19. {micro_users-1.8.3 → micro_users-1.8.4}/users/filters.py +0 -0
  20. {micro_users-1.8.3 → micro_users-1.8.4}/users/forms.py +0 -0
  21. {micro_users-1.8.3 → micro_users-1.8.4}/users/middleware.py +0 -0
  22. {micro_users-1.8.3 → micro_users-1.8.4}/users/migrations/0001_initial.py +0 -0
  23. {micro_users-1.8.3 → micro_users-1.8.4}/users/migrations/0002_alter_useractivitylog_action.py +0 -0
  24. {micro_users-1.8.3 → micro_users-1.8.4}/users/migrations/0003_scope_alter_customuser_options_and_more.py +0 -0
  25. {micro_users-1.8.3 → micro_users-1.8.4}/users/migrations/__init__.py +0 -0
  26. {micro_users-1.8.3 → micro_users-1.8.4}/users/models.py +0 -0
  27. {micro_users-1.8.3 → micro_users-1.8.4}/users/signals.py +0 -0
  28. {micro_users-1.8.3 → micro_users-1.8.4}/users/static/img/default_profile.webp +0 -0
  29. {micro_users-1.8.3 → micro_users-1.8.4}/users/static/img/login_logo.webp +0 -0
  30. {micro_users-1.8.3 → micro_users-1.8.4}/users/static/users/css/detail.css +0 -0
  31. {micro_users-1.8.3 → micro_users-1.8.4}/users/static/users/css/login.css +0 -0
  32. {micro_users-1.8.3 → micro_users-1.8.4}/users/static/users/css/permissions.css +0 -0
  33. {micro_users-1.8.3 → micro_users-1.8.4}/users/static/users/css/profile.css +0 -0
  34. {micro_users-1.8.3 → micro_users-1.8.4}/users/static/users/css/style.css +0 -0
  35. {micro_users-1.8.3 → micro_users-1.8.4}/users/static/users/js/login.js +0 -0
  36. {micro_users-1.8.3 → micro_users-1.8.4}/users/tables.py +0 -0
  37. {micro_users-1.8.3 → micro_users-1.8.4}/users/templates/registration/login.html +0 -0
  38. {micro_users-1.8.3 → micro_users-1.8.4}/users/templates/users/partials/scope_actions.html +0 -0
  39. {micro_users-1.8.3 → micro_users-1.8.4}/users/templates/users/partials/scope_form.html +0 -0
  40. {micro_users-1.8.3 → micro_users-1.8.4}/users/templates/users/partials/scope_manager.html +0 -0
  41. {micro_users-1.8.3 → micro_users-1.8.4}/users/templates/users/partials/user_actions.html +0 -0
  42. {micro_users-1.8.3 → micro_users-1.8.4}/users/templates/users/profile/profile.html +0 -0
  43. {micro_users-1.8.3 → micro_users-1.8.4}/users/templates/users/profile/profile_edit.html +0 -0
  44. {micro_users-1.8.3 → micro_users-1.8.4}/users/templates/users/user_activity_log.html +0 -0
  45. {micro_users-1.8.3 → micro_users-1.8.4}/users/templates/users/user_detail.html +0 -0
  46. {micro_users-1.8.3 → micro_users-1.8.4}/users/templates/users/user_form.html +0 -0
  47. {micro_users-1.8.3 → micro_users-1.8.4}/users/urls.py +0 -0
  48. {micro_users-1.8.3 → micro_users-1.8.4}/users/views.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: micro_users
3
- Version: 1.8.3
3
+ Version: 1.8.4
4
4
  Summary: Arabic Django user management app with abstract user, permissions, and activity logging
5
5
  Home-page: https://github.com/debeski/micro-users
6
6
  Author: DeBeski
@@ -215,3 +215,4 @@ MICRO_USERS_THEME = {
215
215
  | v1.8.1 | • **UI Refinement**: Swapped `Email` and `Phone` positions across all forms, tables, and detail views<br>• **Field Logic**: Set `Email` and `Phone` as optional (not required) for all users<br>• **Security**: Added `manage_staff` custom permission to restrict `is_staff` management to authorized managers only<br>• **Bug Fix**: Reserved `manage_staff` assignment power strictly for Superusers and fixed UI grouping for custom permissions |
216
216
  | v1.8.2 | • **Login UX**: Enhanced login flow with auto-focus on username and improved "Enter to Submit" handling |
217
217
  | v1.8.3 | • **CSP Compliance**: Added `nonce` attribute support to all inline and external script tags (Login, Permissions, Manage Users) for Content Security Policy compliance |
218
+ | v1.8.4 | • **Strict CSP**: Refactored inline JS event handlers to use Event Listeners, fully resolving CSP violation errors |
@@ -182,4 +182,5 @@ MICRO_USERS_THEME = {
182
182
  | v1.8.0 | • **Permissions UI**: Complete redesign with App/Model-based grouping and hierarchical checkboxes<br>• **Aesthetics**: Applied modern glassmorphism theme to permission cards with interactive toggles<br>• **Security**: Implemented 3-level security logic (GM, SM, User) and "invisible" Superuser protection<br>• **Foolproofing**: Added self-editing protection for staff and scope enforcement for managers<br>• **Localization**: Fully translated system auth labels and metadata to Arabic |
183
183
  | v1.8.1 | • **UI Refinement**: Swapped `Email` and `Phone` positions across all forms, tables, and detail views<br>• **Field Logic**: Set `Email` and `Phone` as optional (not required) for all users<br>• **Security**: Added `manage_staff` custom permission to restrict `is_staff` management to authorized managers only<br>• **Bug Fix**: Reserved `manage_staff` assignment power strictly for Superusers and fixed UI grouping for custom permissions |
184
184
  | v1.8.2 | • **Login UX**: Enhanced login flow with auto-focus on username and improved "Enter to Submit" handling |
185
- | v1.8.3 | • **CSP Compliance**: Added `nonce` attribute support to all inline and external script tags (Login, Permissions, Manage Users) for Content Security Policy compliance |
185
+ | v1.8.3 | • **CSP Compliance**: Added `nonce` attribute support to all inline and external script tags (Login, Permissions, Manage Users) for Content Security Policy compliance |
186
+ | v1.8.4 | • **Strict CSP**: Refactored inline JS event handlers to use Event Listeners, fully resolving CSP violation errors |
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: micro-users
3
- Version: 1.8.3
3
+ Version: 1.8.4
4
4
  Summary: Arabic Django user management app with abstract user, permissions, and activity logging
5
5
  Home-page: https://github.com/debeski/micro-users
6
6
  Author: DeBeski
@@ -215,3 +215,4 @@ MICRO_USERS_THEME = {
215
215
  | v1.8.1 | • **UI Refinement**: Swapped `Email` and `Phone` positions across all forms, tables, and detail views<br>• **Field Logic**: Set `Email` and `Phone` as optional (not required) for all users<br>• **Security**: Added `manage_staff` custom permission to restrict `is_staff` management to authorized managers only<br>• **Bug Fix**: Reserved `manage_staff` assignment power strictly for Superusers and fixed UI grouping for custom permissions |
216
216
  | v1.8.2 | • **Login UX**: Enhanced login flow with auto-focus on username and improved "Enter to Submit" handling |
217
217
  | v1.8.3 | • **CSP Compliance**: Added `nonce` attribute support to all inline and external script tags (Login, Permissions, Manage Users) for Content Security Policy compliance |
218
+ | v1.8.4 | • **Strict CSP**: Refactored inline JS event handlers to use Event Listeners, fully resolving CSP violation errors |
@@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"
8
8
 
9
9
  [project]
10
10
  name = "micro_users"
11
- version = "1.8.3"
11
+ version = "1.8.4"
12
12
  description = "Arabic Django user management app with abstract user, permissions, and activity logging"
13
13
  readme = "README.md"
14
14
  requires-python = ">=3.11"
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="micro_users",
8
- version="1.8.3",
8
+ version="1.8.4",
9
9
  author="DeBeski",
10
10
  author_email="debeski1@gmail.com",
11
11
  description="Arabic django user management app with abstract user, permissions, and activity logging",
@@ -82,4 +82,11 @@ document.addEventListener('DOMContentLoaded', function() {
82
82
  // Initial State Sync
83
83
  document.querySelectorAll('.model-group').forEach(group => updateModelMasterStatus(group));
84
84
  document.querySelectorAll('.permissions-card').forEach(card => updateAppMasterStatus(card));
85
+
86
+ // Prevent toggle propagation for specific elements
87
+ document.querySelectorAll('.prevent-toggle').forEach(el => {
88
+ el.addEventListener('click', function(e) {
89
+ e.stopPropagation();
90
+ });
91
+ });
85
92
  });
@@ -21,7 +21,7 @@
21
21
 
22
22
  <div class="mt-3">
23
23
  {% if not request.user.scope %}
24
- <button type="button" class="btn btn-info no-print" title="إدارة النطاقات" onclick="loadScopeManager()">
24
+ <button type="button" class="btn btn-info no-print" title="إدارة النطاقات" id="btn-manage-scopes">
25
25
  <i class="bi bi-list me-1 h4"></i> إدارة النطاقات
26
26
  </button>
27
27
  {% endif %}
@@ -134,6 +134,13 @@
134
134
  })
135
135
  .catch(err => console.error('Error deleting scope:', err));
136
136
  }
137
+
138
+ document.addEventListener('DOMContentLoaded', function() {
139
+ const btnManageScopes = document.getElementById('btn-manage-scopes');
140
+ if (btnManageScopes) {
141
+ btnManageScopes.addEventListener('click', loadScopeManager);
142
+ }
143
+ });
137
144
  </script>
138
145
  {% endblock %}
139
146
 
@@ -14,7 +14,7 @@
14
14
  aria-expanded="false">
15
15
 
16
16
  <div class="d-flex align-items-center">
17
- <div class="form-check me-3" onclick="event.stopPropagation()">
17
+ <div class="form-check me-3 prevent-toggle">
18
18
  <input class="form-check-input app-master-checkbox" type="checkbox" id="master_{{ app_label }}">
19
19
  <label class="form-check-label d-none" for="master_{{ app_label }}">تحديد الكل</label>
20
20
  </div>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes