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;
    }
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;
    }
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 ; }
Determines whether access is granted.

@param $ace
@return array
Determines whether access is granted .