mirror of
https://github.com/processwire/processwire.git
synced 2025-08-24 07:13:08 +02:00
Fix issue processwire/processwire-issues#1062
This commit is contained in:
@@ -60,7 +60,9 @@ class SelectableOptionConfig extends Wire {
|
|||||||
protected function process(Inputfield $inputfield) {
|
protected function process(Inputfield $inputfield) {
|
||||||
|
|
||||||
$value = $this->wire('input')->post('_options');
|
$value = $this->wire('input')->post('_options');
|
||||||
if($this->wire('process') != 'ProcessField' || !$this->wire('user')->isSuperuser()) return;
|
$user = $this->wire('user'); /** @var User $user */
|
||||||
|
$process = $this->wire('process'); /** @var Process @process */
|
||||||
|
if($process != 'ProcessField' || (!$user->isSuperuser() && !$user->hasPermission('field-admin'))) return;
|
||||||
$ns = "$this$this->field"; // namespace for session
|
$ns = "$this$this->field"; // namespace for session
|
||||||
|
|
||||||
if(!is_null($value)) {
|
if(!is_null($value)) {
|
||||||
|
Reference in New Issue
Block a user