Index: usercontent.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/usercontent/usercontent.module,v
retrieving revision 1.4
diff -u -r1.4 usercontent.module
--- usercontent.module	6 Jan 2008 17:58:35 -0000	1.4
+++ usercontent.module	14 Mar 2008 11:10:36 -0000
@@ -12,9 +12,16 @@
 
 */
 
+/**
+ * Implementation of hook_perm().
+ */
+function usercontent_perm() {
+  return array('view usercontent', 'view unpublished', 'view own usercontent');
+}
+
 function usercontent_user($type, &$edit, &$user, $category = NULL) {
 
-  if ($type == 'view') {
+  if ($type == 'view' && user_access('view usercontent')){
     if ($content = usercontent_user_profile_content_array($user->uid)) {
       return array(
         t('User content') => $content

