Either Hot Shit or Total Bollocks
This commit is contained in:
parent
ba1c244515
commit
80e4a6a060
4 changed files with 10 additions and 4 deletions
|
@ -81,8 +81,8 @@ class AppController extends BaseController
|
|||
|
||||
$app = \App\Models\App::query()->where("id", "=", $id)->firstOrFail();
|
||||
|
||||
if($app->owner_id != Auth::user()->id) {
|
||||
throw new NoPermissionException(403, "Not your app");
|
||||
if($app->user_id != Auth::user()->id) {
|
||||
throw new NoPermissionException(403, "Not your app (".$app->user_id."/".Auth::user()->id.")");
|
||||
}
|
||||
|
||||
$app->name = $request->input("name");
|
||||
|
|
|
@ -2,10 +2,16 @@
|
|||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
|
||||
public function boot(){
|
||||
Schema::defaultStringLength(191);
|
||||
}
|
||||
|
||||
/**
|
||||
* Register any application services.
|
||||
*
|
||||
|
|
|
@ -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\EventServiceProvider::class);
|
||||
|
||||
|
|
2
build.sh
2
build.sh
|
@ -1,7 +1,7 @@
|
|||
rm -r -f storage/logs/l*
|
||||
chmod uog+rwx storage/logs
|
||||
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 push docker.keks.cloud/keksaccount/web:latest
|
||||
|
|
Reference in a new issue