Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,22 @@ RUN apk add --no-cache \
sqlite-dev \
oniguruma-dev \
postgresql-dev \
autoconf \
g++ \
make \
&& docker-php-ext-install \
pdo \
pdo_sqlite \
pdo_mysql \
pdo_pgsql \
mbstring \
pcntl \
bcmath \
zip \
opcache
opcache \
&& pecl install --onlyreqdeps --force redis \
&& rm -rf /tmp/pear \
&& docker-php-ext-enable redis

# Install Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
Expand Down Expand Up @@ -149,4 +156,3 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=40s --retries=3 \

# Start Laravel development server (for production, use nginx + PHP-FPM)
CMD ["php", "artisan", "serve", "--host=0.0.0.0", "--port=8000"]

Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function destroy(Request $request, Organization $organization, Repository
abort(404);
}

if ($request->user()->cannot('deleteRepository', $organization)) {
if (! $request->user()?->can('deleteRepository', $organization)) {
abort(403);
}

Expand Down