wasn't updating calculated_permission when updating permission (#869)

This commit is contained in:
Connor Turland 2016-10-28 18:26:40 -04:00 committed by GitHub
parent de16420796
commit 6cc827d11c

View file

@ -271,6 +271,7 @@ _Backbone.init = function () {
newOptions.success = function (model, response, opt) {
if (s) s(model, response, opt)
model.trigger('saved')
model.set('calculated_permission', model.get('permission'))
if (permBefore === 'private' && model.get('permission') !== 'private') {
model.trigger('noLongerPrivate')