Add the moderator role
This commit is contained in:
parent
baf2b5a6a9
commit
dcc2d3b9dc
9 changed files with 28 additions and 16 deletions
|
@ -39,7 +39,7 @@ func coverHandler(h handler) {
|
|||
}
|
||||
|
||||
if !book.Active {
|
||||
if !h.sess.IsAdmin() {
|
||||
if !h.sess.IsModerator() {
|
||||
notFound(h)
|
||||
return
|
||||
}
|
||||
|
|
Reference in a new issue