1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-23 23:02:58 +02:00
This commit is contained in:
Ryan Cramer
2020-01-13 14:49:28 -05:00
parent a4f036cb45
commit f5f83e8148

View File

@@ -60,7 +60,9 @@ class SelectableOptionConfig extends Wire {
protected function process(Inputfield $inputfield) {
$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
if(!is_null($value)) {