Moodle

Some things about parent roles (roles assigned at a user context)

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.7.2, 1.8, 1.9
  • Fix Version/s: 1.8, 1.9
  • Component/s: Roles / Access
  • Labels:
    None
  • Database:
    Any
  • Affected Branches:
    MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE

Description

Something about parents roles...

Currently, if you go to http://localhost/moodle-17/user/view.php?id=11&course=3, parents will be forced to enrol, otherwise they could not view reports of the students under that course. I think they should not be forced to enrol, if they are just visiting the user profile page.

We possibly need a block or something to show all the user contexts the current user is assigned to, to help easy navigation otherwise it's very difficult to find the right "children".

Activity

Hide
Bill Burgos added a comment -

Hi Yu,

Just to add to what we have been discussing.

As a parent, the user will need to know the student profile page in order to see the activity tab and then the grades. This can only be done, I think, now through an HTML block on the /my/ page. This is how I did it on my site.

Also, as we discussed, the direct link to the student grade tab is the only way to see the grades for the students.

So, you idea of a block might be appropriate.

Bill

Show
Bill Burgos added a comment - Hi Yu, Just to add to what we have been discussing. As a parent, the user will need to know the student profile page in order to see the activity tab and then the grades. This can only be done, I think, now through an HTML block on the /my/ page. This is how I did it on my site. Also, as we discussed, the direct link to the student grade tab is the only way to see the grades for the students. So, you idea of a block might be appropriate. Bill
Hide
Yu Zhang added a comment -

Hi bill, the new mentees block is in, I left some notes in http://moodle.org/mod/forum/discuss.php?d=57812, It's only in 1.8 and 1.9, but I think you can copy the block into your 1.7 blocks directory and it should still work. Please report bugs.

Cheers,

Yu

Show
Yu Zhang added a comment - Hi bill, the new mentees block is in, I left some notes in http://moodle.org/mod/forum/discuss.php?d=57812, It's only in 1.8 and 1.9, but I think you can copy the block into your 1.7 blocks directory and it should still work. Please report bugs. Cheers, Yu
Hide
Helen Foster added a comment -

Hi Yu,

Just tried the new mentees block in 1.8 beta+ (2007021401) and followed your set-up instructions in the forum thread. However, when logged in as a parent, following the child link in the Mentees block results in the message "The details of this user are not available to you."

Please could you let me know what to check.

Show
Helen Foster added a comment - Hi Yu, Just tried the new mentees block in 1.8 beta+ (2007021401) and followed your set-up instructions in the forum thread. However, when logged in as a parent, following the child link in the Mentees block results in the message "The details of this user are not available to you." Please could you let me know what to check.
Hide
Bill Burgos added a comment -

Hi Helen,

I was able to to get this to work with these settings for Parent on 1.7.+:

moodle/user:viewuseractivitiesreport and

moodle/user:viewusergrades

set to 'Allow' as a minimum setting and then assign the Parent to the child.

Cheers,
Bill

Show
Bill Burgos added a comment - Hi Helen, I was able to to get this to work with these settings for Parent on 1.7.+: moodle/user:viewuseractivitiesreport and moodle/user:viewusergrades set to 'Allow' as a minimum setting and then assign the Parent to the child. Cheers, Bill
Hide
Helen Foster added a comment -

Hi Bill,

It's good to know that this feature is working in 1.7.

I set up a parent role by duplicating a guest role (which includes moodle/user:viewdetails set to allow) and setting moodle/user:viewuseractivitiesreport to allow too, then assigning the parent to the child.

Show
Helen Foster added a comment - Hi Bill, It's good to know that this feature is working in 1.7. I set up a parent role by duplicating a guest role (which includes moodle/user:viewdetails set to allow) and setting moodle/user:viewuseractivitiesreport to allow too, then assigning the parent to the child.
Hide
Bill Burgos added a comment -

Hi Helen,

I created the parent role from scratch, meaning I did not Allow any Legacy Role settings first. I am not sure if it makes a difference or not. I also have not tried this on 1.8, yet. So I am not sure if there is a difference.

Show
Bill Burgos added a comment - Hi Helen, I created the parent role from scratch, meaning I did not Allow any Legacy Role settings first. I am not sure if it makes a difference or not. I also have not tried this on 1.8, yet. So I am not sure if there is a difference.
Hide
Yu Zhang added a comment -

Hi Helen!

I think it is a bug that happens when you have forceloginforprofile on. It should have been fixed now, so please update your code .

Cheers,

Yu

Show
Yu Zhang added a comment - Hi Helen! I think it is a bug that happens when you have forceloginforprofile on. It should have been fixed now, so please update your code . Cheers, Yu
Hide
Yu Zhang added a comment -

resolving this as fixed.

Show
Yu Zhang added a comment - resolving this as fixed.
Hide
Helen Foster added a comment -

Thanks Yu, it's working perfectly now

Information added to documentation wiki: http://docs.moodle.org/en/Parent_role

Show
Helen Foster added a comment - Thanks Yu, it's working perfectly now Information added to documentation wiki: http://docs.moodle.org/en/Parent_role

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: