Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-27263

Respect Roster permissions regarding profile privacy override

    XMLWordPrintable

    Details

    • Type: Task
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.1, 2.8.0
    • Component/s: Profile
    • Labels:
      None

      Description

      It would be nice if Profile2 could watch Roster permissions and adapt profile privacy settings accordingly to the requesting user permissions on site. This way we could give the ability to users to have their profile privacy settings BUT allowing instructors to see their profile photos on Roster if the user is enrolled on their sites.

      Roster permission information:
      http://confluence.sakaiproject.org/display/SRT/Default+permissions

      The only relevant permissions for Profile2 are:
      (1) roster.viewprofile (to display user names as links to show Profile, otherwise shown as text)
      (2) roster.viewofficialphoto (to display official photos (despite of user privacy regarding pics?))

      Actually, (1) is to be processed by the Roster tool, not the Profile2 tool. However, Since this is handled by org.sakaiproject.profile2.legacy.ProfileManagerImpl, just need to add checks in:
      public boolean displayCompleteProfile(Profile profile);

      For (2), checks can be added in ProfileLogicImpl
      public boolean isUserXProfileImageVisibleByUserY(String userX, ProfilePrivacy profilePrivacy, String userY, boolean friend);

      I'm working on a patch for this, will attach here soon.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  steve.swinsburg Steve Swinsburg
                  Reporter:
                  nfernandes Nuno Fernandes (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code