Closed (fixed)
Project:
Registration codes
Version:
6.x-2.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jun 2010 at 17:33 UTC
Updated:
21 Aug 2010 at 11:50 UTC
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.