forked from bofh/fetsite
minor changes
This commit is contained in:
@@ -16,6 +16,7 @@ class LvasController < ApplicationController
|
||||
|
||||
@toolbar_elements<<{:hicon=>'icon-plus-sign', :icon=>:plus, :text => "Neues Beispiel", :path=> new_beispiel_path(:lva_id =>@lva.id)}
|
||||
@toolbar_elements<<{:hicon=>'icon-pencil', :icon=>:pencil,:text =>I18n.t('common.edit'),:path => edit_lva_path(@lva)}
|
||||
@toolbar_elements << {:hicon=>'icon-remove-circle', :text=>I18n.t('common.delete'), :path=> lva_path(@lva), :method=>:delete, :confirm=>"Sure?"}
|
||||
end
|
||||
|
||||
# GET /lvas/new
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
class Ability
|
||||
include CanCan::Ability
|
||||
def initialize(user)
|
||||
@@ -27,7 +28,7 @@ class Ability
|
||||
|
||||
# For Debug allow everything
|
||||
# Remove this line in production environment and for testing user management
|
||||
# can :manage, :all
|
||||
can :manage, :all
|
||||
can :addfetuser, User
|
||||
can :addfetadmin, User
|
||||
can [:show, :index], Studium
|
||||
|
||||
Reference in New Issue
Block a user