nextcloud/apps/files_sharing/ajax/toggleresharing.php

12 lines
254 B
PHP
Raw Normal View History

<?php
2012-05-03 14:23:29 +04:00
OCP\JSON::checkAppEnabled('files_sharing');
OCP\JSON::checkAdminUser();
if ($_POST['resharing'] == true) {
2012-05-02 16:11:29 +04:00
OCP\Config::setAppValue('files_sharing', 'resharing', 'yes');
} else {
2012-05-02 16:11:29 +04:00
OCP\Config::setAppValue('files_sharing', 'resharing', 'no');
}
?>