--- video.module	2006-06-21 21:02:32.000000000 -0400
+++ video.module.new	2006-06-22 22:48:27.000000000 -0400
@@ -99,7 +99,7 @@
           $items[] = array('path' => 'node/'. arg(1) .'/play',
             'title' => t('play'),
             'callback' => 'video_play',
-            'access' => user_access('access video'),
+            'access' => user_access('play video'),
             'weight' => 3,
             'type' => MENU_LOCAL_TASK);
         }
@@ -142,10 +142,16 @@
       $display_download_link = variable_get('video_displaydownloadlink', 1);
     }
 
-    if (variable_get('video_displayplaylink', 1)) {
+    if (user_access('play video')) {
+	if (variable_get('video_displayplaylink', 1)) {
       $link .= l(t('play'), "node/$node->nid/play", array('class' => 'outgoing', 'title' => t('play %link', array('%link' => $node->title))));
       $link .= ($display_download_link == 1) ? ' ' . t('or') . ' ' : ' | ';
     }
+	}
+	else {
+        $link .= '<a href="/user/login">Login</a> or <a href="/user/register">Register</a> to Play Video'; 
+        $link .= ' | ';
+	 }
     if ($display_download_link == 1) {
       $link .= l(t('download'), "node/$node->nid/download", array('class' => 'outgoing', 'title' => t('download %link', array('%link' => $node->title))));
       $link .= ' | ';
@@ -218,7 +224,7 @@
  *   array of permissions
  */
 function video_perm() {
-  $array = array('create video', 'access video', 'administer video', 'download video', 'view play counter', 'view download counter', 'edit own video');
+  $array = array('create video', 'access video', 'administer video', 'play video', 'download video', 'view play counter', 'view download counter', 'edit own video');
   return $array;
 }
 
