mirror of
https://github.com/friendica/friendica
synced 2025-04-26 02:30:11 +00:00
Rearranged scope check
This commit is contained in:
parent
95cac04540
commit
9720ee2c20
3 changed files with 36 additions and 57 deletions
|
@ -46,7 +46,7 @@ class BasicAuth
|
|||
*
|
||||
* @return int User ID
|
||||
*/
|
||||
public static function getCurrentUserID(bool $login = true)
|
||||
public static function getCurrentUserID(bool $login)
|
||||
{
|
||||
if (empty(self::$current_user_id)) {
|
||||
api_login(DI::app(), $login);
|
||||
|
@ -64,7 +64,7 @@ class BasicAuth
|
|||
*/
|
||||
public static function getCurrentApplicationToken()
|
||||
{
|
||||
if (empty(self::getCurrentUserID())) {
|
||||
if (empty(self::getCurrentUserID(true))) {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue