Permalink
Browse files

Fixed typo not adding teacher role response capabilities.

  • Loading branch information...
stas committed Oct 5, 2012
1 parent 70183c1 commit cf7222fae9842da547a8de9310fab193022a04b6
Showing with 1 addition and 1 deletion.
  1. +1 −1 responses/responses.class.php
@@ -84,7 +84,7 @@ function add_response_caps( $user_id ) {
global $bp;
$is_teacher = false;
- if( __( 'Teacher', 'bpsp') == xprofile_get_field_data( __( 'Role', 'bpsp' ), $bp->loggedin_user->id ) )
+ if( __( 'Teacher', 'bpsp') == xprofile_get_field_data( __( 'Role', 'bpsp' ), $user_id ) )
$is_teacher = true;
elseif ( is_super_admin( $user_id ) )
$is_teacher = true;

0 comments on commit cf7222f

Please sign in to comment.