diff --git a/src/components/status/content.vue b/src/components/status/content.vue
index 65774780..c7b24893 100644
--- a/src/components/status/content.vue
+++ b/src/components/status/content.vue
@@ -18,9 +18,7 @@
- Resubmit
+ Resubmit
Back
@@ -113,6 +111,8 @@ export default {
buttonLoading: false,
smallScreen: screen.width < 700,
langTable: sfconfig.langTable,
+ is_mine: false,
+ can_edit: false
};
},
methods: {
@@ -126,6 +126,14 @@ export default {
this.time = data.time;
this.code = data.code;
this.lang_num = String(data.lang);
+
+ if (data.owner == String(this.$store.state.user.userid)) {
+ this.is_mine = true;
+ }
+ if (this.$store.state.user.isStaff || this.is_mine) {
+ this.can_edit = true;
+ }
+
this.$axios
.get(apiurl('/problem/' + String(this.pid)))
.then((title) => {