muck-engine 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/controllers/admin/muck/base_controller.rb +6 -0
- data/muck-engine.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
@@ -15,6 +15,12 @@ class Admin::Muck::BaseController < ApplicationController
|
|
15
15
|
admin?
|
16
16
|
end
|
17
17
|
|
18
|
+
# called by Admin::Muck::BaseController to check whether or not the
|
19
|
+
# user should have access to the admin UI
|
20
|
+
def admin_access_required
|
21
|
+
access_denied unless admin?
|
22
|
+
end
|
23
|
+
|
18
24
|
def permission_denied
|
19
25
|
respond_to do |format|
|
20
26
|
format.html do
|
data/muck-engine.gemspec
CHANGED