/** * update_access_levels * Update access levels of repos * * @param type $repo_id * @param type $permissions * * @return boolean */ function update_access_levels($repo_id = 0, $permissions = "") { $access_table_name = TABLE_PREFIX . 'rt_gitolite_access_master'; if ($repo_id == 0 || $repo_id == "" || $permissions == "") { return false; } /* echo "update ".$access_table_name." set permissions = '$permissions' where repo_id = ".DB::escape($repo_id); die(); */ $update_access = DB::execute("update " . $access_table_name . " set permissions = " . DB::escape($permissions) . " where repo_id = " . DB::escape($repo_id)); ProjectGitolite::update_repo_conf_column(DB::escape($repo_id), $permissions); return true; }