516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
|
end ::nocookie::;
end
if co.aid ~= 0 then
var sess, usr = co.srv:actor_session_fetch(co.aid, peer, co.aid_issue)
if sess.ok == false then co.aid = 0 co.aid_issue = 0 else
co.who = usr.ptr
co.who.rights.powers = server:actor_powers_fetch(co.who.id)
var userhue, hueok = server:actor_conf_int_get(co.who.id, 'ui-accent')
if hueok then co.ui_hue = userhue end
end
end
var livelast_p = lib.http.findheader(msg, 'X-Live-Last-Arrival')
if livelast_p ~= nil and livelast_p.ptr ~= nil then
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
|
end ::nocookie::;
end
if co.aid ~= 0 then
var sess, usr = co.srv:actor_session_fetch(co.aid, peer, co.aid_issue)
if sess.ok == false then co.aid = 0 co.aid_issue = 0 else
co.who = usr.ptr
var pows = server:actor_powers_fetch(co.who.id)
var privs = sess.val.privs
if not privs.post() then (pows.post << false) end
if not privs.edit() then (pows.edit << false) end
if not privs.account() then (pows.account << false) end
if not privs.artifact() then (pows.artifact << false) end
if not privs.invite() then (pows.invite << false) end
if not privs.moderate() then
(pows.censor << false)
(pows.discipline << false)
(pows.vacate << false)
(pows.crier << false)
end
if not privs.admin() then
(pows.cred << false)
(pows.elevate << false)
(pows.demote << false)
(pows.rebrand << false)
(pows.herald << false)
(pows.config << false)
(pows.purge << false)
end
co.who.rights.powers = pows
var userhue, hueok = server:actor_conf_int_get(co.who.id, 'ui-accent')
if hueok then co.ui_hue = userhue end
end
end
var livelast_p = lib.http.findheader(msg, 'X-Live-Last-Arrival')
if livelast_p ~= nil and livelast_p.ptr ~= nil then
|