Conflicts:
	config/routes.rb
This commit is contained in:
Thomas Blazek
2013-08-19 15:47:12 +02:00
131 changed files with 3170 additions and 19 deletions

View File

@@ -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
View File

@@ -0,0 +1,3 @@
class Fetprofile < ActiveRecord::Base
attr_accessible :active, :desc, :fetmailalias, :nachname, :picture, :short, :vorname
end

View File

@@ -0,0 +1,3 @@
class Fetznedition < ActiveRecord::Base
attr_accessible :datei, :datum, :desc, :title
end

3
app/models/foto.rb Normal file
View File

@@ -0,0 +1,3 @@
class Foto < ActiveRecord::Base
attr_accessible :datei, :desc, :gallery_id, :title
end

3
app/models/gallery.rb Normal file
View File

@@ -0,0 +1,3 @@
class Gallery < ActiveRecord::Base
attr_accessible :datum, :desc, :name
end

3
app/models/gremium.rb Normal file
View File

@@ -0,0 +1,3 @@
class Gremium < ActiveRecord::Base
attr_accessible :desc, :name, :typ
end

3
app/models/membership.rb Normal file
View File

@@ -0,0 +1,3 @@
class Membership < ActiveRecord::Base
attr_accessible :fetprofile_id, :gremium_id, :start, :stop, :typ
end