Warning: session_start(): open(/var/lib/php/sessions/sess_d08o68ngcbkgsjitr78gt6hpnv, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
// returns list(pair(id, rule))
static L mL_rules_addGlobalIDsIfAuthed(S listName) {
L l = splitAtEmptyLines(mL_raw(listName));
L withIDs = combineWithGlobalIDs(l);
bool change = false;
for (PairS p : withIDs) {
if (empty(p.a)) p.a = aGlobalID();
change = true;
}
if (change && isMechAuthed()) {
S newText = joinWithEmptyLines(map(withIDs, func(PairS p) {
prependGlobalIDInNewLineAndIndent(p.a, p.b) }));
editMechList("NL Logic Rules w/IDs", newText);
}
ret withIDs;
}