Changes between Version 1 and Version 2 of UseCase17


Ignore:
Timestamp:
09/19/26 17:12:24 (4 days ago)
Author:
236021
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase17

    v1 v2  
    44
    55== Description ==
    6 A system administrator logs into the Medora system using their credentials. The admin gains access to billing administrative functions.
     6A billing administrator logs into the Medora system using their credentials. The admin gains access to billing administrative functions.
    77
    88== Scenario ==
     
    2424FROM users u
    2525WHERE u.username = 'admin_ilija'
    26   AND u.role = 'ADMIN';
     26  AND u.role = 'BILLING_ADMIN';
    2727}}}
    2828
     
    3535WHERE u.username = 'admin_ilija'
    3636  AND u.is_active = TRUE
    37   AND u.role = 'ADMIN';
     37  AND u.role = 'BILLING_ADMIN';
    3838}}}
    3939
     
    4444SELECT
    4545  a.admin_id,
    46   a.user_id,
    47   a.permissions
     46  a.username,
     47  a.name,
     48  a.lastname,
     49  a.email
    4850FROM admin a
    49 WHERE a.user_id = (SELECT user_id FROM users WHERE username = 'admin_ilija');
     51JOIN users u ON u.admin_id = a.admin_id
     52WHERE u.username = 'admin_ilija';
    5053}}}
    5154