mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-01 02:15:12 +00:00
Admin can override moderators
This commit is contained in:
1 parent
75fb7c4f03
commit
c5c8be599a
1 file changed
+5
-2
@@ -12,6 +12,7 @@ from petnames import getPetName
|
||||
from person import isPersonSnoozed
|
||||
from posts import isModerator
|
||||
from utils import getFullDomain
|
||||
from utils import getConfigParam
|
||||
from utils import isDormant
|
||||
from utils import removeHtml
|
||||
from utils import getDomainFromActor
|
||||
@@ -183,8 +184,10 @@ def htmlPersonOptions(defaultTimeline: str,
|
||||
|
||||
# checkbox for permission to post to newswire
|
||||
if optionsDomainFull == domainFull:
|
||||
if isModerator(baseDir, nickname) and \
|
||||
not isModerator(baseDir, optionsNickname):
|
||||
adminNickname = getConfigParam(baseDir, 'admin')
|
||||
if (nickname == adminNickname or
|
||||
(isModerator(baseDir, nickname) and
|
||||
not isModerator(baseDir, optionsNickname))):
|
||||
newswireBlockedFilename = \
|
||||
baseDir + '/accounts/' + \
|
||||
optionsNickname + '@' + optionsDomain + '/.nonewswire'
|
||||
|
||||
Reference in new issue
Block a user