diff --git a/docs/DataStructure.md b/docs/DataStructure.md index 4766eff11..74256a567 100644 --- a/docs/DataStructure.md +++ b/docs/DataStructure.md @@ -141,11 +141,12 @@ The actual answers of users on submission. ## Permissions Array of permissions, the user has on the form. Permissions are named by resp. routes on frontend. -| Permission | Description | -| -----------|-------------| -| edit | User is allowed to edit the form | -| results | User is allowed to access the form results | -| submit | User is allowed to submit to the form | +| Permission | Description | +| ---------------|-------------| +| edit | User is allowed to edit the form | +| results | User is allowed to access the form results | +| results_delete | User is allowed to delete form submissions | +| submit | User is allowed to submit to the form | ## Access Object Defines some extended options of sharing / access diff --git a/lib/Constants.php b/lib/Constants.php index 69c2540e0..60af263ff 100644 --- a/lib/Constants.php +++ b/lib/Constants.php @@ -115,11 +115,13 @@ class Constants { // Define Form Permissions public const PERMISSION_EDIT = 'edit'; public const PERMISSION_RESULTS = 'results'; + public const PERMISSION_RESULTS_DELETE = 'results_delete'; public const PERMISSION_SUBMIT = 'submit'; public const PERMISSION_ALL = [ self::PERMISSION_EDIT, self::PERMISSION_RESULTS, + self::PERMISSION_RESULTS_DELETE, self::PERMISSION_SUBMIT ]; diff --git a/src/components/Results/Submission.vue b/src/components/Results/Submission.vue index ed649e302..138f02206 100644 --- a/src/components/Results/Submission.vue +++ b/src/components/Results/Submission.vue @@ -25,7 +25,7 @@