Skip to content
Snippets Groups Projects
  1. Feb 15, 2022
    • Andreas Ellewsen's avatar
      Handle wrong person following invitation link · 3c51ae60
      Andreas Ellewsen authored
      If someone that already exists in greg follows an invite, we are kind
      enough to give the new role to the existing person. This introduced a
      security risk if the invitation was actually meant for someone else.
      
      Because of this situation, we introduce a security mechanism where we
      disable the invitationlink if the name of the existing person is too
      different from the name used in the invitation.
      
      Resolves: GREG-166
      3c51ae60
  2. Feb 09, 2022
    • Andreas Ellewsen's avatar
      Add flag to prevent nin verification in frontend · a6dd5745
      Andreas Ellewsen authored and Jonas Braathen's avatar Jonas Braathen committed
      If a sponsor verifies a nin that is already in use by an account in
      cerebrum, the guest will gain access to that account, which in turn
      allows the guest to change the password of that account. This makes it
      possible to abuse the guest service to steal the account of users.
      
      A feature that checks for this problem, and helps the sponsor make a
      decision on it, will be introduced in the near future. At that point
      nin verification can be enabled again.
      
      Resolves: GREG-202
      a6dd5745
  3. Jan 27, 2022
  4. Jan 25, 2022
  5. Jan 24, 2022
    • Andreas Ellewsen's avatar
      Redirect invited guests to register · 616b4d76
      Andreas Ellewsen authored
      If the user logs in through the frontpage we now check if they have
      completed the registration process. If they have completed it halfway
      before, we find their info through the GregUserProfile of the user and
      redirect to the register page. If we dont find any profile connected to
      the user they are treated as anonymous users as before.
      
      Resolves: GREG-164
      616b4d76
  6. Jan 21, 2022
  7. Jan 14, 2022
  8. Jan 12, 2022
  9. Jan 11, 2022
  10. Jan 10, 2022
  11. Jan 06, 2022
    • Tore.Brede's avatar
      GREG-161: Updating test and formatting · 279b7951
      Tore.Brede authored
      279b7951
    • Andreas Ellewsen's avatar
      Notify sponsors about ending roles · 17cbacd5
      Andreas Ellewsen authored
      The setup has five parts:
      - a new email template type
      - a new django-q task for notifying
      - a management command for scheduling the task periodically
      - a new settings variable NOTIFIER_LIMIT for controlling the number of
        days into the future the notifier script should use for end date of
        roles.
      - a new settings variable NOTIFIER_SCHEDULE_TYPE for controlling how
        often the notifier task should be scheduled when using the management
        command.
      
      Resolves: GREG-162
      17cbacd5
  12. Jan 05, 2022
  13. Jan 04, 2022
  14. Jan 03, 2022
  15. Dec 21, 2021
  16. Dec 17, 2021
  17. Dec 14, 2021
  18. Dec 13, 2021
  19. Dec 10, 2021
    • Andreas Ellewsen's avatar
      Allow sponsors access to all roles on their units · 708d2fee
      Andreas Ellewsen authored
      It has been decided that a sponsor at a unit should have access to all
      roles at that unit. This includes all units accessible through
      hierarchical access.
      
      Resolves: GREG-150
      708d2fee
    • Andreas Ellewsen's avatar
      Change rules for role dates · 96dd9bb4
      Andreas Ellewsen authored
      Dates can now be changed after they have started and ended. This means
      that there is no situation which needs disabling the input fields, and
      disabling has been removed.
      
      Start and end date can now be in the past. The following rules apply:
       - Start dates can be any date in the past, and no more into the future
         than the max days property of the role type.
       - End dates follow the same rules
       - End dates must be equal to or later than start date.
      
      Notification publishing has been reviewed to ensure duplicate
      notifications are not created when start or end date is today.
      
      Resolve: GREG-148
      96dd9bb4
Loading