mirror of
https://github.com/grocy/grocy.git
synced 2025-09-16 09:51:30 +00:00
Add user-field-type "file" (#977)
* Add user-field-type "file" * Add userfield-type "picture" * Also limit image height on userfieldsform * Prevent empty userfields (cause warnings in tables after deleting a file) * Show files in dialogs Co-authored-by: Bernd Bestel <bernd@berrnd.de>
This commit is contained in:
committed by
GitHub
parent
318db53818
commit
07beee93a9
@@ -34,7 +34,9 @@ $app->group('', function(RouteCollectorProxy $group)
|
||||
$group->get('/user/{userId}/permissions', '\Grocy\Controllers\UsersController:PermissionList');
|
||||
$group->get('/usersettings', '\Grocy\Controllers\UsersController:UserSettings');
|
||||
|
||||
// Stock routes
|
||||
$group->get('/files/{group}/{fileName}', '\Grocy\Controllers\FilesApiController:ShowFile');
|
||||
|
||||
// Stock routes
|
||||
if (GROCY_FEATURE_FLAG_STOCK)
|
||||
{
|
||||
$group->get('/stockoverview', '\Grocy\Controllers\StockController:Overview');
|
||||
|
Reference in New Issue
Block a user