leog
(Leo Giovanetti)
13 أغسطس 2019، 1:43ص
1
مرحبًا!
أتساءل عما إذا كان لدى أحد فكرة حول كيفية إنشاء صفحة خطأ مخصصة لفئة غير قابلة للوصول بسبب أذونات المجموعة.
الخلفية: من أجل استخدام إضافة التصويت فقط من قبل أشخاص معينين، تم إنشاء مجموعة. للأسف، ولضمان أن تكون قدرة التصويت متاحة فقط لتلك المجموعة من الأشخاص، لا يمكن لأي شخص خارجها حتى رؤية تلك الفئة، وذلك لأن صلاحية “المشاهدة” تسمح للمستخدم أيضًا بالتصويت. عندما يصطدم أي شخص خارج المجموعة بتلك الفئة غير القابلة للوصول (وليس بالصدفة، يجب أن أضيف)، أود أن أشرح لهم كيفية الانضمام إلى تلك المجموعة ليكونوا قادرين على التصويت.
شكرًا جزيلاً مقدمًا!
تم مناقشة هذا بالفعل هنا
I think this is a great idea. For many kinds of forums identifying that something is there is not a security hole and would really improve accessibility.
The challenge here is really naming the site setting properly and explaining what it does. I’ve done my best below but would not be against edits.
Here’s a mini spec:
Add a new site setting detailed_404, default false. “Provides more details to users about why they can’t access a particular topic. NOTE: This is less secure because users wi…
@دان ، هل لا يزال هذا مدرجًا في قائمة مهامك المستقبلية؟
dan
(Dan Ungureanu)
16 أكتوبر 2019، 10:42ص
4
هناك إعداد موقع جديد، detailed_404، يتحكم في هذا. عند تمكينه، سيحاول تقديم معلومات أكثر تفصيلاً عن الخطأ (أي المجموعة التي يمكنها رؤية الموضوع أو الفئة).
master ← udan11:detailed_404
merged 11:15AM - 08 Oct 19 UTC
If the setting is turned on, then the user will receive information
about the s… ubject: if it was deleted or requieres some special access to
a group (only if the group is public). Otherwise, the user will receive
a generic #404 error message. For now, this change affects only the
topics and categories controller.
This commit also tries to refactor some of the code related to error
handling. To make error pages more consistent (design-wise), the actual
error page will be rendered server-side.
---
### Preview
* Topic in a secret category (with public group)
<img width="1135" alt="topic in secret category" src="https://user-images.githubusercontent.com/4147664/63161475-d9fd6d00-c028-11e9-8e0a-6c8595d73c32.png">
* Deleted topic in a public category (with public group)
<img width="1135" alt="a deleted topic" src="https://user-images.githubusercontent.com/4147664/63161465-d538b900-c028-11e9-88b9-0587fc763645.png">
* Deleted topic in a secret category
<img width="1135" alt="deleted topic in secret category" src="https://user-images.githubusercontent.com/4147664/63161491-e2ee3e80-c028-11e9-83a8-39bb46494069.png">
* Topic in a secret category (with private group)
<img width="1135" alt="topic in super secret category" src="https://user-images.githubusercontent.com/4147664/63161500-e8e41f80-c028-11e9-8a98-ca3534288849.png">
* Secret category (with a public group)
<img width="1135" alt="category page" src="https://user-images.githubusercontent.com/4147664/63161513-ee416a00-c028-11e9-87ef-45943576dbaa.png">