Changeset 525 for trunk/Modules/News/NewsPage.php
- Timestamp:
- Apr 20, 2013, 11:47:25 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/News/NewsPage.php
r524 r525 163 163 $DbResult = $this->Database->query('SELECT * FROM News WHERE Id='.$_GET['id']); 164 164 $Row = $DbResult->fetch_array(); 165 if($this->System-> Modules['User']->User['Id'] == $Row['User'])165 if($this->System->User->User['Id'] == $Row['User']) 166 166 { 167 167 if($Row['Enclosure'] != '') … … 179 179 break; 180 180 default: 181 if($this->System-> Modules['User']->CheckPermission('News', 'Display', 'Group', $Category))181 if($this->System->User->CheckPermission('News', 'Display', 'Group', $Category)) 182 182 { 183 183 $PerPage = 20; … … 197 197 else $Author = $Row['Name']; 198 198 $Output .= '<div class="Panel"><div class="Title"><a href="?action=view&id='.$Row['Id'].'">'.$Row['Title'].'</a> ('.HumanDate($Row['Date']).', '.$Author.')'; 199 if($this->System-> Modules['User']->User['Id'] == $Row['User'])199 if($this->System->User->User['Id'] == $Row['User']) 200 200 { 201 201 $Output .= '<div class="Action">';
Note:
See TracChangeset
for help on using the changeset viewer.