mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
fix: disable updating preferences in demo
This commit is contained in:
parent
a587d0db4d
commit
3c2d6a040b
3 changed files with 6 additions and 1 deletions
|
@ -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) {
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue