mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 11:58:24 +01:00
rel 0.9.36-ng-a1 enable add/del/edit/read of non owned vcs, NAPI-3.1 version
This commit is contained in:
parent
71207ba7d6
commit
40862cff82
11
icalsrv.php
11
icalsrv.php
@ -10,8 +10,8 @@
|
|||||||
* @note <b> THIS IS STILL EXPERIMENTAL CODE </b> do not use in production.
|
* @note <b> THIS IS STILL EXPERIMENTAL CODE </b> do not use in production.
|
||||||
* @note this script is supposed to be at: egw-root/icalsrv.php
|
* @note this script is supposed to be at: egw-root/icalsrv.php
|
||||||
*
|
*
|
||||||
* @version 0.9.34-ng-a5x first version with xmlrpc copied session handling
|
* @version 0.9.36-ng-a1 first version for NAPI-3.1 (write in non owner rscs)
|
||||||
* @date 20060407
|
* @date 20060410
|
||||||
* @author Jan van Lieshout <jvl (at) xs4all.nl> Rewrite and extension for egw 1.2.
|
* @author Jan van Lieshout <jvl (at) xs4all.nl> Rewrite and extension for egw 1.2.
|
||||||
* (see: @url http://www.egroupware.org )
|
* (see: @url http://www.egroupware.org )
|
||||||
*
|
*
|
||||||
@ -48,7 +48,7 @@ $isdebug = False;
|
|||||||
/** Disallow users to import in non owned calendars and infologs
|
/** Disallow users to import in non owned calendars and infologs
|
||||||
* @var boolean $disable_nonowner_import
|
* @var boolean $disable_nonowner_import
|
||||||
*/
|
*/
|
||||||
$disable_nonowner_import = true;
|
$disable_nonowner_import = false;
|
||||||
|
|
||||||
// icalsrv variant with session setup modeled after xmlrpc.php
|
// icalsrv variant with session setup modeled after xmlrpc.php
|
||||||
|
|
||||||
@ -427,6 +427,11 @@ if ($_SERVER['REQUEST_METHOD'] == 'PUT') {
|
|||||||
fail_exit('importing in non owner calendars currently disabled', '403');
|
fail_exit('importing in non owner calendars currently disabled', '403');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(isset($reqvircal_owner_id) && ($reqvircal_owner_id < 0)){
|
||||||
|
error_log('icalsrv.php: importing in group calendars not allowed');
|
||||||
|
fail_exit('importing in groupcalendars is not allowed', '403');
|
||||||
|
}
|
||||||
|
|
||||||
// I0 read the payload
|
// I0 read the payload
|
||||||
$logmsg = 'IMPORTING in '. $importMode . ' mode';
|
$logmsg = 'IMPORTING in '. $importMode . ' mode';
|
||||||
$fpput = fopen("php://input", "r");
|
$fpput = fopen("php://input", "r");
|
||||||
|
Loading…
Reference in New Issue
Block a user