Skip to content

Commit

Permalink
[acc] admin can write on all conferences
Browse files Browse the repository at this point in the history
  • Loading branch information
cgars committed Apr 26, 2018
1 parent 14bf06f commit e070de9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/models/Conference.scala
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ class Conference extends Model with Owned with Tagged {
def touch (): Unit = {
this.mtime = new DateTime(DateTimeZone.UTC)
}

override def canWrite(account: Account): Boolean = {
isOwner(account) || account.isAdmin
}
}
}

object Conference extends Model {
Expand Down

0 comments on commit e070de9

Please sign in to comment.