Revision: 191
http://svn.sourceforge.net/hw4mdl/?rev=191&view=rev
Author: hugues
Date: 2007-05-11 07:51:33 -0700 (Fri, 11 May 2007)
Log Message:
-----------
Fixing profile problem with students not able to access the Voice Tools
Modified Paths:
--------------
trunk/moodle/mod/voicetools/lib/common/WimbaCommons.php
trunk/moodle/mod/voicetools/lib/vt/WimbaVoicetools.php
Modified: trunk/moodle/mod/voicetools/lib/common/WimbaCommons.php
===================================================================
--- trunk/moodle/mod/voicetools/lib/common/WimbaCommons.php 2007-04-19 11:47:58 UTC (rev 190)
+++ trunk/moodle/mod/voicetools/lib/common/WimbaCommons.php 2007-05-11 14:51:33 UTC (rev 191)
@@ -101,12 +101,12 @@
if (($role!="" && $role=="Instructor") || ($role=="" && $this->hparams["role"]=="Instructor")) {
- $this->currentVtUserRigths->setProfile ('moodle.'.$product.'.instructor');
+ $this->currentVtUserRigths->setProfile ('angel.'.$product.'.instructor');
}
else {
- $this->currentVtUserRigths->setProfile ( 'moodle.'.$product.'.student');
+ $this->currentVtUserRigths->setProfile ( 'angel.'.$product.'.student');
}
}
@@ -118,9 +118,10 @@
return $this->currentVtUserRigths;
}
- function setVtUserRigths($product,$role){
- $this->currentVtUserRigths->setProfile ( 'moodle.'.$product.$role);
-
+ function setVtUserRigths($product,$role){
+ $this->currentVtUserRigths->setProfile ( 'angel.'.$product.'.'.$role);
+ if($product=="presentation")
+ this->currentVtUserRigths->add("reply_message");
}
}
@@ -150,21 +151,21 @@
} else{
- if(isstudent($courseId)) { //Student
- $role='Student';
- }
- else if (isadmin() || isteacher($courseId, $USER->id)) { // Admin, Teacher
- $role='Instructor';
- }
-
- if(strstr($CFG->release,"1.7")) { // 1.7.* version
- if (iscreator()) { // Course Creator
- $role='Instructor';
- }
- else if (!isteacheredit($courseId)) { // Non-editing Teacher
- $role='Student';
- }
+ if(isstudent($courseId)) { //Student
+ $role='Student';
}
+ else if (isadmin() || isteacher($courseId, $USER->id)) { // Admin, Teacher
+ $role='Instructor';
+ }
+
+ if(strstr($CFG->release,"1.7")) { // 1.7.* version
+ if (iscreator()) { // Course Creator
+ $role='Instructor';
+ }
+ else if (!isteacheredit($courseId)) { // Non-editing Teacher
+ $role='Student';
+ }
+ }
}
Modified: trunk/moodle/mod/voicetools/lib/vt/WimbaVoicetools.php
===================================================================
--- trunk/moodle/mod/voicetools/lib/vt/WimbaVoicetools.php 2007-04-19 11:47:58 UTC (rev 190)
+++ trunk/moodle/mod/voicetools/lib/vt/WimbaVoicetools.php 2007-05-11 14:51:33 UTC (rev 191)
@@ -621,6 +621,10 @@
{
$this->hparams["profile"]= $profile;
}
+ function add($param)
+ {
+ $this->hparams["add"]= $param;
+ }
function getParameters()
{
return $this->parameters;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|