Access_Control::can_access( awsmug\Torro_Forms\DB_Objects\Forms\Form $form, awsmug\Torro_Forms\DB_Objects\Submissions\Submission|null $submission = null )

Determines whether the current user can access a specific form or submission.

Description

See also

Parameters

$form

(awsmug\Torro_Forms\DB_Objects\Forms\Form) (Required) Form object.

$submission

(awsmug\Torro_Forms\DB_Objects\Submissions\Submission|null) (Optional) Submission object, or null if no submission is set.

Default value: null

Return

(bool|WP_Error) True if the form or submission can be accessed, false or error object otherwise.

Source

File: src/modules/access-controls/access-control.php

	public abstract function can_access( $form, $submission = null );

Changelog

Changelog
Version Description
1.0.0 Introduced.