Browse Source

Fix user password

jmontoyaa 8 years ago
parent
commit
f767ead168
1 changed files with 7 additions and 13 deletions
  1. 7 13
      plugin/bbb/lib/bbb.lib.php

+ 7 - 13
plugin/bbb/lib/bbb.lib.php

@@ -790,23 +790,17 @@ class bbb
      */
     public function getUserMeetingPassword()
     {
-        if ($this->isConferenceManager()) {
-
-            return $this->getModMeetingPassword();
-        } else {
-
-            if ($this->isGlobalConferencePerUserEnabled()) {
-
-                return 'url_'.$this->userId.'_'.api_get_current_access_url_id();
-            }
+        if ($this->isGlobalConferencePerUserEnabled()) {
 
-            if ($this->isGlobalConference()) {
+            return 'url_'.$this->userId.'_'.api_get_current_access_url_id();
+        }
 
-                return 'url_'.api_get_current_access_url_id();
-            }
+        if ($this->isGlobalConference()) {
 
-            return api_get_course_id();
+            return 'url_'.api_get_current_access_url_id();
         }
+
+        return api_get_course_id();
     }
 
     /**