mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Started social registration
This commit is contained in:
@ -34,8 +34,7 @@ class Authenticate
|
||||
*/
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
$sitePublic = Setting::get('app-public', false) === 'true';
|
||||
if ($this->auth->guest() && !$sitePublic) {
|
||||
if ($this->auth->guest() && !Setting::get('app-public')) {
|
||||
if ($request->ajax()) {
|
||||
return response('Unauthorized.', 401);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user