added security fix for edit page
This commit is contained in:
1 parent
fb1a78c550
commit
01bb50fdec
1 file changed
+6
-3
@@ -41,9 +41,12 @@ class Admin::GalleriesController < OrbitAdminController
|
||||
|
||||
def edit
|
||||
@album = Album.find(params[:id])
|
||||
@tags = @module_app.tags
|
||||
@categories = @module_app.categories
|
||||
|
||||
if can_edit_or_delete?(@album)
|
||||
@tags = @module_app.tags
|
||||
@categories = @module_app.categories
|
||||
else
|
||||
render_401
|
||||
end
|
||||
end
|
||||
|
||||
def set_cover
|
||||
|
||||
Reference in new issue
Block a user