Przeglądaj źródła

Add ip ban functionality

sbkwgh 8 lat temu
rodzic
commit
f4ea19cf66

+ 3 - 3
src/components/routes/AdminModerationBannedUsers.vue

@@ -114,8 +114,8 @@
 		computed: {
 			bans () {
 				return this.bans_.map(ban => {
-					if(ban.ipBlock) {
-						ban.type = 'IP block'
+					if(ban.ipBanned) {
+						ban.type = 'IP banned'
 					} else if (ban.canCreateThreads && !ban.canCreatePosts) {
 						ban.type = 'Posting replies'
 					} else if(ban.canCreatePosts && !ban.canCreateThreads) {
@@ -151,7 +151,7 @@
 				} else if(store.selectedOption === 'post') {
 					obj.canCreatePosts = false
 				} else {
-					return
+					obj.ipBanned = true
 				}
 
 				this.axios