1. 03 Jul, 2012 1 commit
    • Son Nguyen's avatar
      Enable collections in groups and institutions (Bug #886080) · 86d8cc21
      Son Nguyen authored
      
      
      1. For group collections
      Only roles that can edit group pages can do these:
      - Listing group collections
      - Creating a new group collection
      - Deleting and editing an selected group collection.
      - Copying a collection
      2. For institution collections
      Only institution admins can:
      - Listing insitution collections
      - Creating a new institution collection
      - Deleting and editing an selected institution collection.
      - Copying a collection
      
      Change-Id: I799bcfaf0f751d1a8c1fa9b5e5df4832832d8ea1
      Signed-off-by: default avatarSon Nguyen <son.nguyen@catalyst.net.nz>
      86d8cc21
  2. 01 Jun, 2012 1 commit
  3. 31 May, 2012 2 commits
    • Richard Mansfield's avatar
      Add support in User for theme preference · c1fda6fe
      Richard Mansfield authored
      
      
      Part of bug #793308
      
      If a user has the 'theme' property set in their account preferences,
      this is used instead of the site or institution's theme.
      
      The LiveUser::reset_institutions() function, which recalculates the
      institution theme, is now called in place of LiveUser::update_theme()
      whenever a user's institutions have changed.  reset_institutions() now
      calls update_theme() if the user is a LiveUser.
      
      Change-Id: I75b36da85a5aa249c3098078b8588b8a20ac9b48
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      c1fda6fe
    • Richard Mansfield's avatar
      Gather themename, logo & stylesheets together in User object · a9e7ef47
      Richard Mansfield authored
      
      
      The Theme constructor expects a triple (basename, logo, stylesheet),
      which is passed by the User::get_themedata function.  But the three
      properties are stored separately in the User object.  If they are
      grouped together, then it will be easier to switch themes in and out
      at a later date.
      
      The three properties are combined under the 'institutiontheme' name,
      to make it clear that they are defined by the user's institutions, and
      to distinguish them from the user's own theme preference.
      
      This requires a slight change to code for setting a view theme on view
      creation, where only the basename property is allowed, because custom
      themes with logos & stylesheets are not yet available as view themes.
      
      Change-Id: Ie400a0f1c4a2172382dfaba14139f1b0b27f2120
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      a9e7ef47
  4. 18 May, 2012 1 commit
  5. 13 Feb, 2012 1 commit
    • Richard Mansfield's avatar
      Get unread message count from user table (bug #854403) · 60167828
      Richard Mansfield authored
      
      
      Also keeps the count in the $USER object up to date whenever the
      user deletes or reads a notification.
      
      When new notifications are generated for a live user by another user,
      or on cron, the logged-in user's unread count is reloaded from the
      database into the session either on hitting the inbox, or whenever
      $USER is committed for some other reason.
      
      The code to reload the background fields on commit of the LiveUser
      object has been changed to ensure that it still works at upgrade time,
      where the 'reload' column doesn't exist in the user table yet, but
      *does* exist in the User object.
      
      Change-Id: I9c9a81bf77d0927352902dee0d989d6122757b47
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      60167828
  6. 06 Feb, 2012 1 commit
  7. 10 Jan, 2012 2 commits
  8. 16 Dec, 2011 1 commit
  9. 31 Oct, 2011 1 commit
  10. 27 Oct, 2011 1 commit
  11. 06 Oct, 2011 1 commit
  12. 04 Oct, 2011 2 commits
  13. 28 Sep, 2011 1 commit
    • Richard Mansfield's avatar
      Create all profiles with logged-in access by default (bug #807278) · f820ea6c
      Richard Mansfield authored
      
      
      There is currently only a site-wide setting for logged-in profile view
      access.  This means that when two institutions share a site, and one
      wants open profiles and another only wants institution-visible profiles,
      new users in the open-profile institution must be asked to manually add
      logged-in access on their profile.  Because we expect many more
      open-profile institutions than closed-profile institutions on a site, it
      makes more sense to put the onus on the closed-profile institutions to
      ensure their members remove logged-in access manually.
      
      This change ensures logged-in access is added to all new profiles, but
      only locks that access when the loggedinprofileviewaccess setting is on.
      
      Change-Id: I3375d7b2f8eb635a11879bf7758267f48f74c508
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      f820ea6c
  14. 12 Sep, 2011 1 commit
  15. 07 Sep, 2011 1 commit
  16. 02 Sep, 2011 1 commit
  17. 01 Sep, 2011 1 commit
  18. 25 Aug, 2011 1 commit
  19. 24 Aug, 2011 2 commits
  20. 19 Aug, 2011 1 commit
    • Hugh Davenport's avatar
      Allow group members to view their own files · 7d9b3749
      Hugh Davenport authored
      
      
      If a file is in the groups area that doesn't have member access
      then the group member that initially uploaded it can't view it
      
      This patch allows the author (uploader) of a file to still have access
      no matter what the access is set to for the group role they belong to
      
      Bug #812673
      
      Change-Id: I1d5bbccb41d34af15617ac5abc673b1265ac9f3e
      Signed-off-by: default avatarHugh Davenport <hugh@catalyst.net.nz>
      7d9b3749
  21. 16 Aug, 2011 1 commit
    • Richard Mansfield's avatar
      Preserve admin/system user fields when committing LiveUser instance · 725ba929
      Richard Mansfield authored
      
      
      The $USER object is saved to the usr table in the db whenever it
      changes, and also periodically when the lastaccess property is updated.
      However, for some fields, it's not appropriate to overwrite the db
      value with the $USER property, because these fields are generally only
      modifiable by an admin (e.g. quota, suspended) or the system (e.g.
      active).  Previously we have tried to deal with this by removing the
      sessions of users whose properties are modified by an admin.  This is
      okay when suspending or deleting a user, because the user should be
      forced to log out anyway.  But for other properties like the user file
      quota, it shouldn't be necessary to force the user to log out because
      the value was modified by an admin.  It makes more sense to specify a
      list of fields (including quota) that should be reloaded into $USER on
      every commit.
      
      Change-Id: Id0268a29be976a506b09d81aeb6a5b80a26e72fa
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      725ba929
  22. 03 Aug, 2011 1 commit
  23. 27 Jul, 2011 1 commit
  24. 12 Jul, 2011 2 commits
  25. 05 Jul, 2011 1 commit
  26. 28 Jun, 2011 1 commit
  27. 23 Jun, 2011 1 commit
  28. 22 Jun, 2011 1 commit
  29. 16 Jun, 2011 1 commit
  30. 13 May, 2011 1 commit
  31. 06 May, 2011 1 commit
  32. 11 Apr, 2011 1 commit
  33. 07 Apr, 2011 2 commits
  34. 22 Dec, 2010 1 commit