Example #1
0
 /**
  * Returns whether a user is authorized to edit an inventory item
  *
  * @param int $inventory_id
  *
  * @return bool
  */
 protected static function user_can_edit($inventory_id = NULL)
 {
     return WPIMAdmin::check_permission('edit_item', $inventory_id);
 }