Fixed issue with variable scoping in {workspace,project}_permissions_updated?()