Please note: This method is outdated. Please use the method hasAdminRights on the ApiUser object instead.
This method verifies, if the logged in user has the administration right.
You can use this e.g. in the isAuthorized method to release a widget only for administrators.
Example:
public function isAuthorized()
{
return $this->hasUserAdminRights();
}