Commit d8941651 authored by Linus Tolke's avatar Linus Tolke
Browse files

lyskom-is-administrator kollas när vi ändrar presentation/lapp

parent c6db7fab
No preview for this file type
......@@ -857,7 +857,8 @@ TYPE is either 'pres or 'motd, depending on what should be changed."
((null conf-stat) ;+++ annan felhantering
(lyskom-insert-string 'cant-get-conf-stat)
(lyskom-end-of-command))
((lyskom-member-p (conf-stat->supervisor conf-stat))
((or lyskom-is-administrator
(lyskom-member-p (conf-stat->supervisor conf-stat)))
(initiate-get-text 'main 'lyskom-change-pres-or-motd-3
(cond
((eq type 'pres)
......@@ -922,7 +923,8 @@ conf-stat."
(lyskom-end-of-command))
((numberp conf)
(initiate-get-conf-stat 'main 'lyskom-unset-conf-motd conf))
((lyskom-member-p (conf-stat->supervisor conf))
((or lyskom-is-administrator
(lyskom-member-p (conf-stat->supervisor conf)))
(lyskom-set-conf-motd 0 (conf-stat->conf-no conf))
(lyskom-end-of-command))
(t
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment