diff --git a/src/main/java/org/ntlab/acanthus_server/entities/Animation.java b/src/main/java/org/ntlab/acanthus_server/entities/Animation.java index de76cd7..4d4e98a 100644 --- a/src/main/java/org/ntlab/acanthus_server/entities/Animation.java +++ b/src/main/java/org/ntlab/acanthus_server/entities/Animation.java @@ -30,7 +30,7 @@ this.createdDate = dt.toString(); this.isPublic = false; this.owner = owner; - this.editors.add(new Editor(owner)); + this.editors.add(new Editor(owner, true)); this.pageMap.put(0, 0); } diff --git a/src/main/java/org/ntlab/acanthus_server/entities/Editor.java b/src/main/java/org/ntlab/acanthus_server/entities/Editor.java index 39ec4b4..eaea542 100644 --- a/src/main/java/org/ntlab/acanthus_server/entities/Editor.java +++ b/src/main/java/org/ntlab/acanthus_server/entities/Editor.java @@ -6,14 +6,14 @@ //private Integer page; //private Integer layer; - public Editor(Account account){ + /*public Editor(Account account){ this.account = account; isOwner = false; - } - /*public Editor(Account account, boolean isOwner){ + }*/ + public Editor(Account account, boolean isOwner){ this.account = account; this.isOwner = isOwner; - }*/ + } public Account getAccount() { return account; } @@ -22,4 +22,6 @@ } public Account getEditor(){ return this.account; } + + public boolean checkOwner(){ return this.isOwner; } }