regcode_voucher.module should not show 'Voucher' tab in other users Profile, only in users own profile.
It could be done by this code:

function _regcode_voucher_accesscheck($account, $context = '') {
  
  global $user;
  if ($account->uid != $user->uid) {
    return FALSE;
  }

[...]

}
CommentFileSizeAuthor
regcode_voucher.module.patch503 bytesjehu

Comments

aidanlis’s picture

Status: Active » Fixed

Good point, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.