app/controllers/kojac_front_methods.rb in kojac-0.12.0 vs app/controllers/kojac_front_methods.rb in kojac-0.13.0
- old
+ new
@@ -1,8 +1,16 @@
module KojacFrontMethods
protected
+ def unauthorized!(aMessage=nil)
+ raise aMessage || "You are not authorized to perform this action"
+ end
+
+ def kojac_current_user
+ current_user
+ end
+
def process_ops(aInput)
result = {}
if ops = aInput[:ops]
result[:ops] = []
ops.each do |op|