mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Hopefully making Systems editable by Artisans.
This commit is contained in:
parent
7d637a0a27
commit
f7eaf91bae
1 changed files with 3 additions and 0 deletions
|
@ -23,5 +23,8 @@ LevelSystemHandler = class LevelSystemHandler extends Handler
|
|||
hasAccess: (req) ->
|
||||
req.method is 'GET' or req.user?.isAdmin() or req.user?.isArtisan()
|
||||
|
||||
hasAccessToDocument: (req, document, method) ->
|
||||
if req.user?.isArtisan() then true else super req, document, method
|
||||
|
||||
|
||||
module.exports = new LevelSystemHandler()
|
||||
|
|
Loading…
Reference in a new issue