OSDN Git Service

fix: fetch fail
[pettanr/pettanr.git] / app / assets / javascripts / pettanr / operator.js.coffee
index a3cb3de..8df5a4a 100644 (file)
@@ -1,6 +1,9 @@
 class Pettanr.Operator\r
   \r
   constructor: (operators) ->\r
+    @init(operators)\r
+  \r
+  init: (operators) ->\r
     @operators = operators\r
     @user = @operators.user\r
     @author = @operators.author\r
@@ -28,3 +31,11 @@ class Pettanr.Operator
     return true if @admin\r
     false\r
   \r
+  is_author: () ->\r
+    return true if @author\r
+    false\r
+  \r
+  is_artist: () ->\r
+    return true if @artist\r
+    false\r
+  \r