fix: disable updating preferences in demo

This commit is contained in:
Phan An 2019-11-06 12:33:40 +01:00
parent a587d0db4d
commit 3c2d6a040b
3 changed files with 6 additions and 1 deletions

View file

@ -51,6 +51,10 @@ class ProfileController extends Controller
*/
public function update(ProfileUpdateRequest $request)
{
if (config('koel.misc.demo')) {
return response()->json();
}
$data = $request->only('name', 'email');
if ($request->password) {

View file

@ -131,6 +131,7 @@ return [
'docs_url' => 'https://koel.phanan.net/docs',
'sponsor_github_url' => 'https://github.com/users/phanan/sponsorship',
'sponsor_open_collective_url' => 'https://opencollective.com/koel',
'demo' => env('KOEL_DEMO', false),
],
];

@ -1 +1 @@
Subproject commit b957d7b552740f4e14aa12c13190bbaf79f714e8
Subproject commit 21405b614816fe6c50432d053a62b1bcaaaedd86