From 3f39ac76ee9fb52db47a095327579b4a6c8940dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 25 Jul 2012 22:19:01 +0200 Subject: [PATCH] Require GOD level to administrate. --- .../demoscenemusic/page/admin/ArtistsAdminPage.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/net/pterodactylus/demoscenemusic/page/admin/ArtistsAdminPage.java b/src/main/java/net/pterodactylus/demoscenemusic/page/admin/ArtistsAdminPage.java index 4243910..0539aef 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/page/admin/ArtistsAdminPage.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/page/admin/ArtistsAdminPage.java @@ -24,6 +24,7 @@ import java.util.List; import net.pterodactylus.demoscenemusic.core.Core; import net.pterodactylus.demoscenemusic.data.Artist; import net.pterodactylus.demoscenemusic.data.DefaultArtist; +import net.pterodactylus.demoscenemusic.data.User; import net.pterodactylus.demoscenemusic.page.BasePage; import net.pterodactylus.demoscenemusic.page.ServletRequest; import net.pterodactylus.util.database.DatabaseException; @@ -73,4 +74,12 @@ public class ArtistsAdminPage extends BasePage { } } + /** + * {@inheritDoc} + */ + @Override + protected int getRequiredUserLevel() { + return User.LEVEL_GOD; + } + } -- 2.7.4