function merci_check_content_type_user_permissions in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6
Same name and namespace in other branches
- 6.2 includes/api.inc \merci_check_content_type_user_permissions()
- 7.2 includes/api.inc \merci_check_content_type_user_permissions()
Ensures the user has 'edit own [type] content' and 'delete own [type] content' permissions, otherwise they are not allowed to reserve the content type.
Return value
TRUE if the user has access to reserve the content type, FALSE otherwise.
1 call to merci_check_content_type_user_permissions()
- merci_build_reservable_items in ./
merci.module - Builds the list of all currently reservable items, filtered by date.
File
- ./
merci.module, line 1213 - MERCI - Managed Equipment Reservation Checkout and Inventory
Code
function merci_check_content_type_user_permissions($type) {
return user_access("edit own {$type} content") && user_access("delete own {$type} content");
}