wasn't updating calculated_permission when updating permission (#869)
This commit is contained in:
parent
de16420796
commit
6cc827d11c
1 changed files with 1 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue