- authentication fix

- demo helper
This commit is contained in:
Peter Papp
2021-03-17 07:34:22 +01:00
parent 2c69553582
commit ce477fdaf1
13 changed files with 47 additions and 11653 deletions

View File

@@ -202,11 +202,22 @@ function get_version()
/**
* Check if is demo
*
* @return boolean
*/
function is_demo()
{
return config('vuefilemanager.is_demo');
}
/**
* Check if is demo
*
* @param $email
* @return mixed
*/
function is_demo($user_id)
function is_demo_account($email)
{
return env('APP_DEMO', false) && $user_id === 1;
return config('vuefilemanager.is_demo') && $email === 'howdy@hi5ve.digital';
}
/**