VRFS-689 only show band setup link if user is on his own profile
This commit is contained in:
parent
92d9999719
commit
205d90e25b
|
|
@ -482,7 +482,9 @@
|
|||
async: false,
|
||||
processData:false,
|
||||
success: function(response) {
|
||||
if (!response || response.length === 0) {
|
||||
logger.debug("context.JK.currentUserId=" + context.JK.currentUserId);
|
||||
logger.debug("userId=" + userId);
|
||||
if ( (!response || response.length === 0) && context.JK.currentUserId === userId) {
|
||||
var noBandHtml = $('#template-no-bands').html();
|
||||
$("#profile-bands").append(noBandHtml);
|
||||
}
|
||||
|
|
@ -538,8 +540,10 @@
|
|||
configureBandFollowingButton(following, val.id);
|
||||
});
|
||||
|
||||
var moreBandsHtml = $('#template-more-bands').html();
|
||||
$("#profile-bands").append(moreBandsHtml);
|
||||
if (context.JK.currentUserId === userId) {
|
||||
var moreBandsHtml = $('#template-more-bands').html();
|
||||
$("#profile-bands").append(moreBandsHtml);
|
||||
}
|
||||
}
|
||||
},
|
||||
error: app.ajaxError
|
||||
|
|
|
|||
Loading…
Reference in New Issue