@@ 121-131 (lines=11) @@ | ||
118 | } |
|
119 | // Manage upload(s) |
|
120 | $allowupload = false; |
|
121 | switch ($xoopsModuleConfig['uploadgroups']) { |
|
122 | case 1: //Submitters and Approvers |
|
123 | $allowupload = true; |
|
124 | break; |
|
125 | case 2: //Approvers only |
|
126 | $allowupload = $approveprivilege ? true : false; |
|
127 | break; |
|
128 | case 3: //Upload Disabled |
|
129 | $allowupload = false; |
|
130 | break; |
|
131 | } |
|
132 | ||
133 | if ($allowupload) { |
|
134 | if ($op === 'edit') { |
@@ 116-126 (lines=11) @@ | ||
113 | ||
114 | // Manage upload(s) |
|
115 | $allowupload = false; |
|
116 | switch ($xoopsModuleConfig['uploadgroups']) { |
|
117 | case 1: //Submitters and Approvers |
|
118 | $allowupload = true; |
|
119 | break; |
|
120 | case 2: //Approvers only |
|
121 | $allowupload = $approveprivilege ? true : false; |
|
122 | break; |
|
123 | case 3: //Upload Disabled |
|
124 | $allowupload = false; |
|
125 | break; |
|
126 | } |
|
127 | ||
128 | if ($allowupload) { |
|
129 | if ($op === 'edit') { |
@@ 430-440 (lines=11) @@ | ||
427 | } |
|
428 | ||
429 | $allowupload = false; |
|
430 | switch ($xoopsModuleConfig['uploadgroups']) { |
|
431 | case 1: //Submitters and Approvers |
|
432 | $allowupload = true; |
|
433 | break; |
|
434 | case 2: //Approvers only |
|
435 | $allowupload = $approveprivilege ? true : false; |
|
436 | break; |
|
437 | case 3: //Upload Disabled |
|
438 | $allowupload = false; |
|
439 | break; |
|
440 | } |
|
441 | ||
442 | if ($allowupload && isset($_POST['deleteimage']) && (int)$_POST['deleteimage'] == 1) { |
|
443 | $currentPicture = $story->picture(); |