Changeset 64a2b05 in theo


Ignore:
Timestamp:
11/21/2022 04:46:33 PM (2 months ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
4a983f6
Parents:
a2e3593
Message:

Check for user uuid, instead of presence of user object

in order to know which pages etc. to show for current user. now the
user object is always at least an empty dict; will never be null

Location:
mobile/src/views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mobile/src/views/Login.vue

    ra2e3593 r64a2b05  
    5454        checkUser() {
    5555            // send logged-in users to "home" instead
    56             if (this.$store.state.user) {
     56            if (this.$store.state.user.uuid) {
    5757                this.$router.push('/')
    5858            }
  • mobile/src/views/ordering/OrderingBatchWorksheet.vue

    ra2e3593 r64a2b05  
    134134
    135135            // is someone logged in?
    136             if (this.$store.state.user) {
     136            if (this.$store.state.user.uuid) {
    137137
    138138                // go ahead and fetch data, but only if user has permission
Note: See TracChangeset for help on using the changeset viewer.