aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/ajax/togglesettings.php
blob: 546b37ae1aa85dc31054d759f681ed6aca633a09 (plain)
1
2
3
4
5
6
7
8
9
10
<?php

OCP\JSON::checkAppEnabled('files_versions');
OCP\JSON::checkAdminUser();
OCP\JSON::callCheck();
if (OCP\Config::getSystemValue('versions', 'true')=='true') {
	OCP\Config::setSystemValue('versions', 'false');
} else {
	OCP\Config::setSystemValue('versions', 'true');
}