1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Updated auth pages to new design, Removed public layout

This commit is contained in:
Dan Brown
2019-02-03 17:34:15 +00:00
parent 138f5d5c4f
commit 5325870271
31 changed files with 521 additions and 577 deletions

View File

@ -41,11 +41,19 @@ function user()
* Check if current user is a signed in user.
* @return bool
*/
function signedInUser()
function signedInUser() : bool
{
return auth()->user() && !auth()->user()->isDefault();
}
/**
* Check if the current user has general access.
* @return bool
*/
function hasAppAccess() : bool {
return !auth()->guest() || setting('app-public');
}
/**
* Check if the current user has a permission.
* If an ownable element is passed in the jointPermissions are checked against