From: David ‘Bombe’ Roden Date: Wed, 25 Jul 2012 20:19:01 +0000 (+0200) Subject: Require GOD level to administrate. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=3f39ac76ee9fb52db47a095327579b4a6c8940dc;p=demoscenemusic.git Require GOD level to administrate. --- 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; + } + }