public function hasGroupPermissionSelected(Group $group)
    {
        $definition = (new Query())->select("inheritance")->from("cms_nav_permission")->where(['group_id' => $group->id, 'nav_id' => $this->id])->one();
        
        if ($definition) {
            return true;
        }
        
        return false;
    }
public function hasGroupPermissionSelected(Group $group)
    {
        $definition = (new Query())->select("inheritance")->from("cms_nav_permission")->where(['group_id' => $group->id, 'nav_id' => $this->id])->one();
        
        if ($definition) {
            return true;
        }
        
        return false;
    }
public function hasGroupPermissionSelected ( Group $ group ) { $ definition = ( new Query ( ) ) -> select ( "inheritance" ) -> from ( "cms_nav_permission" ) -> where ( [ 'group_id' => $ group -> id , 'nav_id' => $ this -> id ] ) -> one ( ) ; if ( $ definition ) { return true ; } return false ; }
See if the given group has permission to the current nav model.

@param Group $group
@return boolean
See if the given group has permission to the current nav model .