1
0
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:
Toby Zerner
2015-12-30 15:26:07 +10:30
parent 5e476fae16
commit 1cac48f90a
3 changed files with 5 additions and 13 deletions

View File

@@ -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();
}
}