mirror of
https://github.com/flarum/core.git
synced 2025-10-11 23:14:29 +02:00
Always grant master API keys sudo mode
This commit is contained in:
@@ -42,15 +42,4 @@ class ApiKey extends AbstractModel
|
||||
|
||||
return $key;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the given key only if it is valid.
|
||||
*
|
||||
* @param string $key
|
||||
* @return static|null
|
||||
*/
|
||||
public static function valid($key)
|
||||
{
|
||||
return static::where('id', $key)->first();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user