Skip to content

Commit 853f29a

Browse files
committed
Update AbstractWebService.php
1 parent 8d98648 commit 853f29a

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/AbstractWebService.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,11 +515,15 @@ public function hasParameter($name) {
515515
* The developer should implement this method in a way it returns a boolean.
516516
* If the method returns true, it means the client is allowed to use the service.
517517
* If the method returns false, then he is not authorized and a 401 error
518-
* code will be sent back.
518+
* code will be sent back. If the method returned nothing, then it means the
519+
* user is authorized to call the API. If WebFiori framework is used, it is
520+
* possible to perform the functionality of this method using middleware.
519521
*
520522
* @since 1.0.1
521523
*/
522-
abstract function isAuthorized();
524+
public function isAuthorized() {
525+
526+
}
523527
/**
524528
* Returns the value of the property 'requreAuth'.
525529
*

0 commit comments

Comments
 (0)