Changeset 893 for trunk/includes/PageEdit.php
- Timestamp:
- Mar 6, 2023, 1:48:45 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/PageEdit.php
r888 r893 3 3 class PageEdit extends Page 4 4 { 5 var $Table; 6 var $Definition; 7 var $ItemActions; 5 public string $Table; 6 public string $TableSQL; 7 public array $Definition; 8 public array $ItemActions; 9 public bool $AllowEdit; 8 10 9 11 function __construct($System) … … 109 111 { 110 112 $Output = ''; 111 if ($this->System->User->Licence(LICENCE_USER)) 113 $User = ModuleUser::Cast($this->System->GetModule('User'))->User; 114 if ($User->Licence(LICENCE_USER)) 112 115 { 113 116 if (array_key_exists('finish', $_GET)) … … 140 143 function DeleteItem() 141 144 { 142 if ($this->System->User->Licence(LICENCE_USER)) 145 $User = ModuleUser::Cast($this->System->GetModule('User'))->User; 146 if ($User->Licence(LICENCE_USER)) 143 147 { 144 $this->Database->query('DELETE FROM `'.$this->Table.'` WHERE (`User`='.$ this->System->User->Id.') AND (`Id`='.($_GET['id'] * 1).')');148 $this->Database->query('DELETE FROM `'.$this->Table.'` WHERE (`User`='.$User->Id.') AND (`Id`='.($_GET['id'] * 1).')'); 145 149 $Output = ShowMessage(T('Record removed')); 146 150 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL);
Note:
See TracChangeset
for help on using the changeset viewer.