Changeset 887 for trunk/Modules/Chat/Chat.php
- Timestamp:
- Nov 20, 2020, 12:08:12 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Chat/Chat.php
r874 r887 3 3 class PageChatHistory extends Page 4 4 { 5 function __construct( $System)5 function __construct(System $System) 6 6 { 7 7 parent::__construct($System); … … 17 17 } 18 18 19 function Show() 19 function Show(): string 20 20 { 21 21 global $MonthNames; 22 22 23 if (! $this->System->User->CheckPermission('Chat', 'Display')) return 'Nemáte oprávnění';23 if (!ModuleUser::Cast($this->System->GetModule('User'))->User->CheckPermission('Chat', 'Display')) return 'Nemáte oprávnění'; 24 24 25 25 if (array_key_exists('date', $_GET)) $Date = $_GET['date']; … … 87 87 class ModuleChat extends AppModule 88 88 { 89 function __construct( $System)89 function __construct(System $System) 90 90 { 91 91 parent::__construct($System); … … 98 98 } 99 99 100 function DoStart() 100 function DoStart(): void 101 101 { 102 102 $this->System->Pages['chat'] = 'PageChatHistory';
Note:
See TracChangeset
for help on using the changeset viewer.