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;
}
[...]
}
| Comment | File | Size | Author |
|---|---|---|---|
| regcode_voucher.module.patch | 503 bytes | jehu |
Comments
Comment #1
aidanlis commentedGood point, thanks.