} else {
db_query_params('UPDATE plugin_quotamanagement SET quota_soft = $1, quota_hard = $2, quota_db_soft = $3, quota_db_hard = $4 WHERE group_id = $5',
array($qs, $qh, $qds, $qdh, $group_id));
- $systasksq = new SystasksQ();
+ $systasksq = new SysTasksQ();
$systasksq->add($quotamanagement->getID(), 'QUOTAMANAGEMENT_SET_QUOTA', $group_id);
$feedback = _('Quota updated successfully');
}
if (!$res) {
return false;
}
- $systasksq = new SystasksQ();
+ $systasksq = new SysTasksQ();
$systasksq->add($this->getID(), 'SCMHOOK_UPDATE', $group_id, user_getid());
return true;
$hooks = $hooks_by_type[$hooktype];
foreach ($hooks as $hook) {
$attr = array('type' => 'checkbox', 'name' => 'repository['.$repository.'][]', 'value' => $hook->getLabel().'_'.$hook->getClassname());
- if ((!empty($hook->onlyGlobalAdmin) && !Permission::isGlobalAdmin()) || !$hook->isAvailable()) {
+ if ((!empty($hook->onlyGlobalAdmin) && !Permission::isSuperUser()) || !$hook->isAvailable()) {
$attr = array_merge($attr, array('disabled' => 'disabled'));
if (!$hook->isAvailable()) {
$attr = array_merge($attr, array('title' => $hook->getDisabledMessage()));
$cells[][] = $repository.html_e('input', array('type' => 'hidden', 'name' => 'repository['.$repository.'][]'));
foreach ($hooksServePushPullBundle as $hookServePushPullBundle) {
$attr = array('type' => 'checkbox', 'name' => 'repository['.$repository.'][]', 'value' => $hookServePushPullBundle->getLabel().'_'.$hookServePushPullBundle->getClassname());
- if ((!empty($hookServePushPullBundle->onlyGlobalAdmin) && !Permission::isGlobalAdmin()) || !$hookServePushPullBundle->isAvailable()) {
+ if ((!empty($hookServePushPullBundle->onlyGlobalAdmin) && !Permission::isSuperUser()) || !$hookServePushPullBundle->isAvailable()) {
$attr = array_merge($attr, array('disabled' => 'disabled'));
if (!$hookServePushPullBundle->isAvailable()) {
$attr = array_merge($attr, array('title' => $hookServePushPullBundle->getDisabledMessage()));
$cells[][] = $repository.html_e('input', array('type' => 'hidden', 'name' => 'repository['.$repository.'][]'));
foreach ($hooksPostReceive as $hookPostReceive) {
$attr = array('type' => 'checkbox', 'name' => 'repository['.$repository.'][]', 'value' => $hookPostReceive->getLabel().'_'.$hookPostReceive->getClassname());
- if ((!empty($hookPostReceive->onlyGlobalAdmin) && !Permission::isGlobalAdmin()) || !$hookPostReceive->isAvailable()) {
+ if ((!empty($hookPostReceive->onlyGlobalAdmin) && !Permission::isSuperUser()) || !$hookPostReceive->isAvailable()) {
$attr = array_merge($attr, array('disabled' => 'disabled'));
if (!$hookPostReceive->isAvailable()) {
$attr = array_merge($attr, array('title' => $hookPostReceive->getDisabledMessage()));
$cells[][] = $repository.html_e('input', array('type' => 'hidden', 'name' => 'repository['.$repository.'][]'));
foreach ($hooksPostCommit as $hookPostCommit) {
$attr = array('type' => 'checkbox', 'name' => 'repository['.$repository.'][]', 'value' => $hookPostCommit->getLabel().'_'.$hookPostCommit->getClassname());
- if ((!empty($hookPostCommit->onlyGlobalAdmin) && !Permission::isGlobalAdmin()) || !$hookPostCommit->isAvailable()) {
+ if ((!empty($hookPostCommit->onlyGlobalAdmin) && !Permission::isSuperUser()) || !$hookPostCommit->isAvailable()) {
$attr = array_merge($attr, array('disabled' => 'disabled'));
if (!$hookPostCommit->isAvailable()) {
$attr = array_merge($attr, array('title' => $hookPostCommit->getDisabledMessage()));