forked from SteamWar/SteamWar
Add UserPerm.PUNISHMENTS
Improve PunishmentType needed permissions
This commit is contained in:
@@ -129,8 +129,8 @@ class Punishment(id: EntityID<Int>) : IntEntity(id) {
|
|||||||
val userPerm: UserPerm,
|
val userPerm: UserPerm,
|
||||||
val multi: Boolean = false
|
val multi: Boolean = false
|
||||||
) {
|
) {
|
||||||
Ban("BAN_TEAM", "BAN_PERMA", "BAN_UNTIL", "UNBAN_ERROR", "UNBAN", UserPerm.TEAM),
|
Ban("BAN_TEAM", "BAN_PERMA", "BAN_UNTIL", "UNBAN_ERROR", "UNBAN", UserPerm.PUNISHMENTS),
|
||||||
Mute("MUTE_TEAM", "MUTE_PERMA", "MUTE_UNTIL", "UNMUTE_ERROR", "UNMUTE", UserPerm.TEAM),
|
Mute("MUTE_TEAM", "MUTE_PERMA", "MUTE_UNTIL", "UNMUTE_ERROR", "UNMUTE", UserPerm.PUNISHMENTS),
|
||||||
NoSchemReceiving(
|
NoSchemReceiving(
|
||||||
"NOSCHEMRECEIVING_TEAM",
|
"NOSCHEMRECEIVING_TEAM",
|
||||||
"NOSCHEMRECEIVING_PERMA",
|
"NOSCHEMRECEIVING_PERMA",
|
||||||
@@ -153,7 +153,7 @@ class Punishment(id: EntityID<Int>) : IntEntity(id) {
|
|||||||
"NOSCHEMSUBMITTING_UNTIL",
|
"NOSCHEMSUBMITTING_UNTIL",
|
||||||
"UNNOSCHEMSUBMITTING_ERROR",
|
"UNNOSCHEMSUBMITTING_ERROR",
|
||||||
"UNNOSCHEMSUBMITTING",
|
"UNNOSCHEMSUBMITTING",
|
||||||
UserPerm.TEAM
|
UserPerm.CHECK
|
||||||
),
|
),
|
||||||
NoDevServer(
|
NoDevServer(
|
||||||
"NODEVSERVER_TEAM",
|
"NODEVSERVER_TEAM",
|
||||||
@@ -179,7 +179,7 @@ class Punishment(id: EntityID<Int>) : IntEntity(id) {
|
|||||||
"UNNOTEAMSERVER",
|
"UNNOTEAMSERVER",
|
||||||
UserPerm.MODERATION
|
UserPerm.MODERATION
|
||||||
),
|
),
|
||||||
Note("NOTE_TEAM", null, null, null, null, UserPerm.TEAM, true);
|
Note("NOTE_TEAM", null, null, null, null, UserPerm.PUNISHMENTS, true);
|
||||||
|
|
||||||
fun isMulti() = multi
|
fun isMulti() = multi
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ enum class UserPerm {
|
|||||||
RESTRICTED_MODS,
|
RESTRICTED_MODS,
|
||||||
COLOR_CHAT,
|
COLOR_CHAT,
|
||||||
TEAM,
|
TEAM,
|
||||||
|
PUNISHMENTS,
|
||||||
TICKET_LOG,
|
TICKET_LOG,
|
||||||
BUILD,
|
BUILD,
|
||||||
CHECK,
|
CHECK,
|
||||||
|
|||||||
Reference in New Issue
Block a user