Subversion-Projekte lars-tiefland.webanos.marine-sales.de

Revision

Revision 128 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 128 Revision 151
Zeile 9... Zeile 9...
9
    /**
9
    /**
10
     * Determine if the user is authorized to make this request.
10
     * Determine if the user is authorized to make this request.
11
     *
11
     *
12
     * @return bool
12
     * @return bool
13
     */
13
     */
14
    public function authorize()
14
    public function authorize(): bool
15
    {
15
    {
-
 
16
        if ( isset( $GLOBALS["user_rechte"]["bestellwesen"]["lieferanten"] ) )
-
 
17
        {
-
 
18
            return true;
-
 
19
        }
16
        return false;
20
        return false;
17
    }
21
    }
Zeile 18... Zeile 22...
18
 
22
 
19
    /**
23
    /**
20
     * Get the validation rules that apply to the request.
24
     * Get the validation rules that apply to the request.
21
     *
25
     *
22
     * @return array<string, mixed>
26
     * @return array<string, mixed>
23
     */
27
     */
24
    public function rules()
28
    public function rules(): array
25
    {
29
    {
26
        return [
30
        return [
27
            //
31
            //
28
        ];
32
        ];