cando is a protected variable. use canDo function instead

In the latest version of DokuWiki, and possibly since some earlier versions, the 'cando' variable is protected. Therefore, you need to use the 'canDo' function instead to check if the variable is set. This requires only a minor change (note the capitalization and parenthesis instead of square brackets).