File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -101,10 +101,10 @@ angular.module('mm.addons.mod_data')
101101 replacements . timeadded = true ;
102102 replacements . timemodified = true ;
103103
104- replacements . edit = record . canmanageentry ; // This already checks capabilities and readonly period.
105- replacements . delete = replacements . edit ;
106- replacements . approve = database . approval && accessInfo . canapprove && ! record . approved ;
107- replacements . disapprove = database . approval && accessInfo . canapprove && record . approved ;
104+ replacements . edit = record . canmanageentry && ! record . deleted ; // This already checks capabilities and readonly period.
105+ replacements . delete = record . canmanageentry ;
106+ replacements . approve = database . approval && accessInfo . canapprove && ! record . approved && ! record . deleted ;
107+ replacements . disapprove = database . approval && accessInfo . canapprove && record . approved && ! record . deleted ;
108108
109109 replacements . approvalstatus = database . approval ;
110110 replacements . comments = database . comments ;
Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ angular.module('mm.core')
342342 return ;
343343 }
344344
345- var data = JSON . parse ( el . getAttribute ( 'data-setup' ) || '{}' ) ,
345+ var data = JSON . parse ( el . getAttribute ( 'data-setup' ) || el . getAttribute ( 'data-setup-lazy' ) || '{}' ) ,
346346 youtubeId = data . techOrder && data . techOrder [ 0 ] && data . techOrder [ 0 ] == 'youtube' && data . sources && data . sources [ 0 ] &&
347347 data . sources [ 0 ] . src && youtubeGetId ( data . sources [ 0 ] . src ) ;
348348
You can’t perform that action at this time.
0 commit comments