mirror of
https://github.com/friendica/friendica
synced 2025-04-22 14:30:12 +00:00
Use "checkAllowedScope" instead of "login"
This commit is contained in:
parent
5853fe562d
commit
2a440c0bae
54 changed files with 62 additions and 73 deletions
|
@ -38,7 +38,7 @@ class VerifyCredentials extends BaseApi
|
|||
*/
|
||||
public static function rawContent(array $parameters = [])
|
||||
{
|
||||
self::login(self::SCOPE_READ);
|
||||
self::checkAllowedScope(self::SCOPE_READ);
|
||||
$uid = self::getCurrentUserID();
|
||||
|
||||
$self = User::getOwnerDataById($uid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue