From d9abb62e4b681ae1e7b030be5aafbbf9cf0699a0 Mon Sep 17 00:00:00 2001 From: Regis Freyd Date: Tue, 20 Oct 2020 15:45:28 -0400 Subject: [PATCH] chore: fix permissions on summary project page --- .../Company/Project/ProjectController.php | 2 +- resources/js/Pages/Project/Members/Index.vue | 124 +++++++++--------- .../Pages/Project/Partials/ProjectUpdates.vue | 2 +- 3 files changed, 65 insertions(+), 63 deletions(-) diff --git a/app/Http/Controllers/Company/Project/ProjectController.php b/app/Http/Controllers/Company/Project/ProjectController.php index e90a77302..80711542a 100644 --- a/app/Http/Controllers/Company/Project/ProjectController.php +++ b/app/Http/Controllers/Company/Project/ProjectController.php @@ -574,7 +574,7 @@ public function createStatus(Request $request, int $companyId, int $projectId) } if ($project->lead) { - if ($project->lead->id != $employee->id) { + if ($project->lead->id != $employee->id && $employee->permission_level > 200) { return redirect('home'); } } diff --git a/resources/js/Pages/Project/Members/Index.vue b/resources/js/Pages/Project/Members/Index.vue index 15f1868c5..631e6eb4f 100644 --- a/resources/js/Pages/Project/Members/Index.vue +++ b/resources/js/Pages/Project/Members/Index.vue @@ -94,75 +94,77 @@ -
+
-
-

- {{ $t('project.members_index_add_title') }} -

- - - -

{{ $t('project.members_index_add_role') }}

- - -
    - -
  • - - -
  • - -
  • - - -
  • +

    + {{ $t('project.members_index_add_title') }} +

    + +
    +
    + + +

    {{ $t('project.members_index_add_role') }}

    + + +
      + +
    • + + +
    • + +
    • + + +
    • + + +
    • + + +
    • +
    -
  • - + + - -
  • -
- - -
- - +
-