private function getAccessGranted($ace)
    {
        $access = [
            'total' => $ace->getMask()
        ];

        foreach ($this->getPermissionCodes() as $permission => $code){
            $access[$permission] = (0 !== ($ace->getMask() & $code)) ? 1 : 0;
        }

        $access['none'] = (0 === $ace->getMask()) ? 1 : 0;
        $access['view'] = (1 === $access['edit'] && 0 === $access['view']) ? 1 : $access['view'];

        return $access;
    }