1 <?php
2
3 4 5 6 7 8 9 10
11
12 namespace Icybee\Modules\Taxonomy\Vocabulary;
13
14 use ICanBoogie\Modules;
15
16 class SaveOperation extends \ICanBoogie\SaveOperation
17 {
18 protected function lazy_get_properties()
19 {
20 global $core;
21
22 $request = $this->request;
23 $properties = parent::lazy_get_properties();
24
25 if ($request['scope'])
26 {
27 $properties['scope'] = $request['scope'];
28 }
29
30 if (!$this->key || !$core->user->has_permission(\Icybee\Modules\Nodes\Module::PERMISSION_MODIFY_BELONGING_SITE))
31 {
32 $properties['siteid'] = $core->site_id;
33 }
34
35 return $properties;
36 }
37 }