function uc_addresses_can_add_edit_address in Ubercart Addresses 6
Checks if the current user has may edit addresses of user $address_user.
Parameters
object $address_user: Owner of the address
Return value
boolean
1 string reference to 'uc_addresses_can_add_edit_address'
- uc_addresses_menu in ./
uc_addresses.module - Implementation of hook_menu().
File
- ./
uc_addresses.module, line 297
Code
function uc_addresses_can_add_edit_address($address_user) {
global $user;
$access = user_access(UC_ADDRESSES_ACCESS_ADD_EDIT) || $user->uid == $address_user->uid;
return $access;
}