diff --git a/app/Models/Account.php b/app/Models/Account.php index 1cbe5cb9f2e2..a3c2b2497503 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -1593,6 +1593,7 @@ class Account extends Eloquent return true; } + // note: single & checks bitmask match return $this->enabled_modules & static::$modules[$entityType]; } diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index f1f807037fe3..83a496bcea69 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -254,7 +254,10 @@