add getowner function to OC_Calendar_Object
This commit is contained in:
parent
48f42176cd
commit
0ae088a50a
1 changed files with 5 additions and 0 deletions
|
@ -816,4 +816,9 @@ class OC_Calendar_Object{
|
|||
|
||||
return $vcalendar;
|
||||
}
|
||||
public static function getowner($id){
|
||||
$event = self::find($id);
|
||||
$cal = OC_Calendar_Calendar::find($event['calendarid']);
|
||||
return $cal['userid'];
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue