[IMS-dev] I just committed a bunch of changes to basicLTI4Mediawiki

1 view
Skip to first unread message

csev

unread,
Apr 22, 2010, 6:52:49 PM4/22/10
to ims...@googlegroups.com
I may have messed up so feel free to correct me.

It needed the BLTIAuth.php code to actually make the users and I added the Category code as well. I also made it so the Main page went to the course category.

I am not an expert so I may have made mistakes.

/Chuck

--
You received this message because you are subscribed to the Google Groups "IMS Developer Mailing List" group.
To post to this group, send email to ims...@googlegroups.com.
To unsubscribe from this group, send email to ims-dev+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ims-dev?hl=en.

Antoni Bertran

unread,
May 13, 2010, 8:59:52 AM5/13/10
to ims...@googlegroups.com
Hello I implemented an extension to keep the student in his course. 
Usage of CategoryPermissionsBLTI:

$wgCategoryExclusive=array("Category:cat_name","Category:cat2_name");//deny acces to these categories for anyone not in the group
$wgGroupAlwaysAllow=''; //set a group name to ALWAYS allow access to this group
$wgGroupDefaultAllow=false; //set to true to allow everyone access to pages without a category

//get the name of BLTIclassroom
  $course_name = $_SESSION['BLTIclassroom'];
//add groups to category permissions by:
  $wgGroupPermissions['user']['*_read'] = false; //Set permission for others categories/courses
  $wgGroupPermissions['user']['*_edit'] = false;
  $wgGroupPermissions['user']['*_move'] = false;
  $wgGroupPermissions['user']['*_created']  = false;
  $tag_category = 'Category';//'Course' //Be careful with the translate of Categoryç
//Set permission for current category/course
  $wgGroupPermissions['user'][$tag_category.':'.$course_name.'_read'] = true; 
  $wgGroupPermissions['user'][$tag_category.':'.$course_name.'_edit'] = true;
  $wgGroupPermissions['user'][$tag_category.':'.$course_name.'_move'] = true;
  $wgGroupPermissions['user'][$tag_category.':'.$course_name.'_create']  = true;
  $wgGroupPermissions['user'][$tag_category.':'.$course_name.'_createpage']  = true;

//if yo want you can define special permission access for a group to all categories like this
$wgGroupPermissions['group_name']['*_read']=true;
include_once('extensions/CategoryPermissionsBLTI.php');

I attach an image.

Antoni Bertran Bellido
3&Punt Solucions Informàtiques SLL
935325991 - 935325992
C.Aragó 390, àtic 3
08013 Barcelona
www.tresipunt.com
Tel 935325991
Mob 637700110
Fax 935325992

Aquest missatge pot contenir informació confidencial, en propietat o legalment protegida i està destinada únicament per l'ús de la persona destinataria. Si vostè no és la persona destinataria d'aquest missatge, per la present se'l comunica que no ha d'emprar, difondre, copiar de cap manera, ni emprendre cap acció en relació amb ella. Si vostè ha rebut aquest missatge per error, per favor li preguem que l'esborri, així com qualsevol còpia del mateix i notifiqui aquest fet al remitent. 
 Este mensaje puede contener información confidencial, en propiedad o legalmente protegida y está destinada únicamente para el uso de la persona destinataria. Si usted no es la persona destinataria de este mensaje, por la presente se le comunica que no tiene que utilizar, difundir, copiar de ninguna manera, ni emprender ninguna acción en relación con ella. Si usted ha recibido este mensaje por error, por favor le rogamos que lo borre, así como cualquier copia del mismo y notifique este hecho al remitente.



2010/4/23 csev <cs...@umich.edu>
Error Permission Denied.png
Reply all
Reply to author
Forward
0 new messages