Disable 'forget' button for pads in read-only teams

This commit is contained in:
yflory
2019-10-29 12:24:44 +01:00
parent 57a402da72
commit 96968f2076
3 changed files with 14 additions and 4 deletions

View File

@@ -124,7 +124,7 @@ define([
var data = Env.user.proxy[UserObject.SHARED_FOLDERS][id];
if (data && !editable) { data = JSON.parse(JSON.stringify(data)); }
// If it's not a shared folder, check the pads
if (!data) { Env.user.userObject.getFileData(id, editable); }
if (!data) { data = Env.user.userObject.getFileData(id, editable); }
ret.push({
data: data,
userObject: Env.user.userObject