*** phorum_connector.php	2007-02-18 13:38:26.000000000 +0100
--- ../phorum_integrate-5.1/phorum_connector.php	2007-07-12 22:08:13.000000000 +0200
***************
*** 26,32 ****
      	if(!$result) {
          // if the user is not in the phorum user table but has access,
          // insert an entry in the Phorum user table for them
!     	  if(user_access('access forum')) {
  	    		$id = $user->uid;
  	    		$name = $user->name;
  	    		$email = $user->mail;
--- 26,32 ----
      	if(!$result) {
          // if the user is not in the phorum user table but has access,
          // insert an entry in the Phorum user table for them
!     	  if(user_access('access phorum')) {
  	    		$id = $user->uid;
  	    		$name = $user->name;
  	    		$email = $user->mail;
***************
*** 151,155 ****
--- 151,182 ----
      }
  
    }
+ 
+   /**
+    * This method returns an array of user fields that may be edited through
+    * Phorum's user control center. For now all fields are enabled. Comment
+    * out if you don't like this.
+    */
+   function get_slave_fields() {
+     return array 
+     (
+         "real_name",
+         "signature",
+         "email",
+         "hide_email",
+         "hide_activity",
+         "moderation_email",
+         "tz_offset",
+         "is_dst",
+         "user_language",
+         "user_template",
+         "threaded_list",
+         "threaded_read",
+         "email_notify",
+         "show_signature",
+         "pm_email_notify",
+     );
+   }
+ 
  }
  
