Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Files API
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      the problem here is we need different control when browsing and when viewing, solution is to use different context when browsing and when viewing profile

      file browser will use usercontexidt/user_profile/0/ and userfile.php , this will be returned by file_browser too
      and when viewing profile we will use coursecontext/user_profile/userid/ and pluginfile.php

      committing patch soon

        Gliffy Diagrams

          Activity

          Hide
          Petr Skoda added a comment -

          done

          Show
          Petr Skoda added a comment - done
          Hide
          Mathieu Petit-Clair added a comment -

          Petr, I'm confused. Your last changes (http://cvs.moodle.org/moodle/userfile.php?r1=1.6&r2=1.7 is the patch) to userfile.php made it impossible for anybody but the user "owning" the profile to see files used in it. I hope we can talk about this when you get online, later today.

          Show
          Mathieu Petit-Clair added a comment - Petr, I'm confused. Your last changes ( http://cvs.moodle.org/moodle/userfile.php?r1=1.6&r2=1.7 is the patch) to userfile.php made it impossible for anybody but the user "owning" the profile to see files used in it. I hope we can talk about this when you get online, later today.
          Hide
          Matt Gibson added a comment -

          Hi Petr,

          I just saw this one - am I right in assuming you are implementing a personal file store for each user? If so, is there yet a system for assessing the amount of free disk space? I would like to use such a feature on a whole school basis, but would be worried in case the disks filled up. I checked the file API docs and couldn't find any reference to a way of setting the maximum filestore size. Naturally, a good admin will always make sure there is more disk space than needed and check regularly, but not everyone is a good admin

          Show
          Matt Gibson added a comment - Hi Petr, I just saw this one - am I right in assuming you are implementing a personal file store for each user? If so, is there yet a system for assessing the amount of free disk space? I would like to use such a feature on a whole school basis, but would be worried in case the disks filled up. I checked the file API docs and couldn't find any reference to a way of setting the maximum filestore size. Naturally, a good admin will always make sure there is more disk space than needed and check regularly, but not everyone is a good admin

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: