Either Hot Shit or Total Bollocks

This commit is contained in:
Kekskurse 2019-07-17 11:31:30 +02:00
parent ba1c244515
commit 80e4a6a060
4 changed files with 10 additions and 4 deletions

View file

@ -81,8 +81,8 @@ class AppController extends BaseController
$app = \App\Models\App::query()->where("id", "=", $id)->firstOrFail(); $app = \App\Models\App::query()->where("id", "=", $id)->firstOrFail();
if($app->owner_id != Auth::user()->id) { if($app->user_id != Auth::user()->id) {
throw new NoPermissionException(403, "Not your app"); throw new NoPermissionException(403, "Not your app (".$app->user_id."/".Auth::user()->id.")");
} }
$app->name = $request->input("name"); $app->name = $request->input("name");

View file

@ -2,10 +2,16 @@
namespace App\Providers; namespace App\Providers;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider; use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider class AppServiceProvider extends ServiceProvider
{ {
public function boot(){
Schema::defaultStringLength(191);
}
/** /**
* Register any application services. * Register any application services.
* *

View file

@ -83,7 +83,7 @@ $app->routeMiddleware([
| |
*/ */
// $app->register(App\Providers\AppServiceProvider::class); $app->register(App\Providers\AppServiceProvider::class);
$app->register(App\Providers\AuthServiceProvider::class); $app->register(App\Providers\AuthServiceProvider::class);
// $app->register(App\Providers\EventServiceProvider::class); // $app->register(App\Providers\EventServiceProvider::class);

View file

@ -1,7 +1,7 @@
rm -r -f storage/logs/l* rm -r -f storage/logs/l*
chmod uog+rwx storage/logs chmod uog+rwx storage/logs
composer install --no-dev composer install --no-dev
docker build -t docker.keks.cloud/keksaccount/web:latest -f Dockerfile-app . docker build -t docker.keks.cloud/keksaccount/web:latest -f Dockerfile-web .
docker build -t docker.keks.cloud/keksaccount/app:latest -f Dockerfile-app . docker build -t docker.keks.cloud/keksaccount/app:latest -f Dockerfile-app .
docker push docker.keks.cloud/keksaccount/web:latest docker push docker.keks.cloud/keksaccount/web:latest