mirror of
https://github.com/opensupports/opensupports.git
synced 2025-04-08 18:35:06 +02:00
Fixes /system/get-logs by adding getFetchAs
This commit is contained in:
parent
4970b18c2d
commit
01a494ac23
@ -27,6 +27,13 @@ class Log extends DataStore {
|
||||
];
|
||||
}
|
||||
|
||||
public static function getFetchAs() {
|
||||
return [
|
||||
'authorUser' => 'user',
|
||||
'authorStaff' => 'staff',
|
||||
];
|
||||
}
|
||||
|
||||
public static function createLog($type, $to, $author = null) {
|
||||
$session = Session::getInstance();
|
||||
$authorName = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user