this is a test to see what the value is being return, add this line to the mdocs-rights.php file after line number 85:
function mdocs_download_rights($the_mdoc) {
if(mdocs_check_file_rights($the_mdoc, false)) { ?>
<li role="presentation">
<a role="menuitem" tabindex="-1" href="<?php echo site_url().'/?mdocs-file='.$the_mdoc['id'].'&mdocs-url=false'; ?>"><i class="fa fa-cloud-download"></i> <?php _e('Download','mdocs'); ?></a>
</li>
<?php
} else { ?>
<li role="presentation">
<a role="menuitem" tabindex="-1" href="<?php echo wp_login_url(htmlspecialchars(get_permalink($the_mdoc['parent']))); ?>"><i class="fa fa-cloud-download"></i> <?php _e('Download','mdocs'); ?></a>
</li>
<?php
}
}
to list:
function mdocs_download_rights($the_mdoc) {
var_dump(mdocs_check_file_rights($the_mdoc, false));
if(mdocs_check_file_rights($the_mdoc, false)) { ?>
<li role="presentation">
<a>"><i class="fa fa-cloud-download"></i> <?php _e('Download','mdocs'); ?></a>
<?php
} else { ?>
<li role="presentation">
<a>"><i class="fa fa-cloud-download"></i> <?php _e('Download','mdocs'); ?></a>
<?php
}
}
let me know what the exact output was. the output will be inside the dropdown menu.