Setting up permissions handler
Added getBaseNode() to permissions handler