Added wire master print page permisison apge
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 11s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Laravel Pint / pint (pull_request) Successful in 3m20s
Laravel Larastan / larastan (pull_request) Failing after 3m51s

This commit is contained in:
dhanabalan
2026-02-25 11:13:19 +05:30
parent 076d4a8f68
commit 567b0544a3

View File

@@ -296,4 +296,9 @@ class WireMasterPrint extends Page
'customer' => $state['customer_po_master_id'], 'customer' => $state['customer_po_master_id'],
])); ]));
} }
public static function canAccess(): bool
{
return Auth::check() && Auth::user()->can('view wire master print page');
}
} }