forked from bofh/fetsite
Merge branch 'master' of https://github.com/andreassteph/fetsite
Conflicts: config/routes.rb
This commit is contained in:
@@ -27,7 +27,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
|
||||
@@ -62,7 +62,7 @@ class Ability
|
||||
|
||||
if user.has_role?("newsadmin") || user.has_role?("fetadmin")
|
||||
can :addmoderator, Rubrik
|
||||
end
|
||||
end
|
||||
can [:show, :index], [Rubrik,Neuigkeit]
|
||||
if user.has_role?("newsadmin") || user.has_role?( "fetadmin") || user.has_role?( "fetuser")
|
||||
can :manage, Rubrik
|
||||
|
||||
3
app/models/fetprofile.rb
Normal file
3
app/models/fetprofile.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class Fetprofile < ActiveRecord::Base
|
||||
attr_accessible :active, :desc, :fetmailalias, :nachname, :picture, :short, :vorname
|
||||
end
|
||||
3
app/models/fetznedition.rb
Normal file
3
app/models/fetznedition.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class Fetznedition < ActiveRecord::Base
|
||||
attr_accessible :datei, :datum, :desc, :title
|
||||
end
|
||||
3
app/models/foto.rb
Normal file
3
app/models/foto.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class Foto < ActiveRecord::Base
|
||||
attr_accessible :datei, :desc, :gallery_id, :title
|
||||
end
|
||||
3
app/models/gallery.rb
Normal file
3
app/models/gallery.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class Gallery < ActiveRecord::Base
|
||||
attr_accessible :datum, :desc, :name
|
||||
end
|
||||
3
app/models/gremium.rb
Normal file
3
app/models/gremium.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class Gremium < ActiveRecord::Base
|
||||
attr_accessible :desc, :name, :typ
|
||||
end
|
||||
3
app/models/membership.rb
Normal file
3
app/models/membership.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class Membership < ActiveRecord::Base
|
||||
attr_accessible :fetprofile_id, :gremium_id, :start, :stop, :typ
|
||||
end
|
||||
Reference in New Issue
Block a user