mirror of
https://github.com/nextcloud/server.git
synced 2026-04-26 00:27:49 -04:00
fix name of constants
This commit is contained in:
parent
a88305b4cb
commit
1f8cf2d8f2
2 changed files with 2 additions and 2 deletions
|
|
@ -36,5 +36,5 @@ if($sharetype == 'group' && !OC_Group::groupExists($sharewith)){
|
|||
OC_JSON::error(array('message'=>'group not found'));
|
||||
exit;
|
||||
}
|
||||
$success = OC_Calendar_Share::changepermission($sharewith, $sharetype, $id, $permission, (($idtype=='calendar') ? OC_Calendar_Share::CALENDAR : OC_Calendar_Share::Event));
|
||||
$success = OC_Calendar_Share::changepermission($sharewith, $sharetype, $id, $permission, (($idtype=='calendar') ? OC_Calendar_Share::CALENDAR : OC_Calendar_Share::EVENT));
|
||||
OC_JSON::success();
|
||||
|
|
@ -38,7 +38,7 @@ if($sharetype == 'group' && !OC_Group::groupExists($sharewith)){
|
|||
if($sharetype == 'user' && OC_User::getUser() == $sharewith){
|
||||
OC_JSON::error(array('meesage'=>'you can not share with yourself'));
|
||||
}
|
||||
$success = OC_Calendar_Share::share(OC_User::getUser(), $sharewith, $sharetype, $id, (($idtype=='calendar') ? OC_Calendar_Share::CALENDAR : OC_Calendar_Share::Event));
|
||||
$success = OC_Calendar_Share::share(OC_User::getUser(), $sharewith, $sharetype, $id, (($idtype=='calendar') ? OC_Calendar_Share::CALENDAR : OC_Calendar_Share::EVENT));
|
||||
if($success){
|
||||
if($sharetype == 'public'){
|
||||
OC_JSON::success(array('message'=>$success));
|
||||
|
|
|
|||
Loading…
Reference in a new issue