1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-25 03:43:33 +01:00

Merge branch 'master' into translate

This commit is contained in:
FreeScout 2018-11-26 04:30:22 -08:00
commit 0a34644369
3 changed files with 7 additions and 2 deletions

View File

@ -45,9 +45,13 @@ class SystemController extends Controller
$permissions = [];
foreach (config('installer.permissions') as $perm_path => $perm_value) {
$path = base_path($perm_path);
$value = '';
if (file_exists($path)) {
$value = substr(sprintf('%o', fileperms($path)), -4);
}
$permissions[$perm_path] = [
'status' => \Helper::isFolderWritable($path),
'value' => substr(sprintf('%o', fileperms($path)), -4),
'value' => $value,
];
}
// Check if public symlink exists, if not, try to create.

View File

@ -59,6 +59,7 @@ return [
'bootstrap/cache/' => '775',
'public/css/builds/' => '775',
'public/js/builds/' => '775',
'public/modules/' => '775',
],
/*

View File

@ -97,7 +97,7 @@
@if ($perm['status'])
<strong class="text-success">OK</strong>
@else
<strong class="text-danger">{{ __('Not writable') }} ({{ $perm['value'] }})</strong>
<strong class="text-danger">{{ __('Not writable') }} @if ($perm['value'])({{ $perm['value'] }})@endif</strong>
@endif
</td>
</tr>