muck-engine 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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