[paste-web/sticky-notes] Revert "Lock down website but keep public pastes working"
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [paste-web/sticky-notes] Revert "Lock down website but keep public pastes working"
- Date: Thu, 30 Apr 2020 10:00:13 +0000 (UTC)
commit da893f3edfcb6da18666430b9990288a9b4374aa
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Thu Apr 30 12:00:04 2020 +0200
Revert "Lock down website but keep public pastes working"
This reverts commit 16b18afa333034dd654c9e1918fdae6a7c8e3f1d.
app/filters.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/filters.php b/app/filters.php
index a9b9c5f0..dbd7095e 100755
--- a/app/filters.php
+++ b/app/filters.php
@@ -158,7 +158,7 @@ Route::filter('admin', function()
Route::filter('private', function()
{
- if (! Auth::roles()->admin)
+ if (Site::config('general')->pasteVisibility == 'private' AND ! Auth::roles()->admin)
{
App::abort(403); // Forbidden
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]