namespace Friendica\Util;
-use Friendica\BaseObject;
use Friendica\Database\DBA;
use Friendica\Model\Contact;
use Friendica\Model\Group;
/**
* Secures that User is allow to do requests
*/
-class Security extends BaseObject
+class Security
{
public static function canWriteToUserWall($owner)
{
static $verified = 0;
- if (!local_user() && !remote_user()) {
+ if (!Session::isAuthenticated()) {
return false;
}