1 class Pettanr.Operator
\r
3 constructor: (operators) ->
\r
7 @operators = operators
\r
8 @user = @operators.user
\r
9 @author = @operators.author
\r
10 @artist = @operators.artist
\r
11 @admin = @operators.admin
\r
19 return true if @author or @artist or @admin or @user
\r
23 return true if @author or @artist or @user
\r
26 is_resource_reader: () ->
\r
27 return true if @author or @artist or @admin or @user or @demand_user
\r
31 return true if @admin
\r
35 return true if @author
\r
39 return true if @artist
\r