Skip to content

Commit

Permalink
fix: affiliate showing up without permission
Browse files Browse the repository at this point in the history
Co-authored-by: tehcneko <[email protected]>
  • Loading branch information
omg-xtao and tehcneko authored Jan 3, 2025
1 parent f9962fb commit b983a91
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,7 @@ public void afterTextChanged(Editable editable) {
infoContainer.addView(channelAffiliateProgramsCell, LayoutHelper.createLinear(LayoutHelper.MATCH_PARENT, LayoutHelper.WRAP_CONTENT));
}

if (channelAffiliateProgramsCell != null && getMessagesController().starrefConnectAllowed) {
if (channelAffiliateProgramsCell != null && ChatObject.hasAdminRights(currentChat) && getMessagesController().starrefConnectAllowed) {
channelAffiliateProgramsCell.setVisibility(View.VISIBLE);
}
if (logCell != null) {
Expand Down

0 comments on commit b983a91

Please sign in to comment.