Minimum version: Midgard 1.1.1
Check whether the authenticated user is an owner of the article with id article.
Returns TRUE if the user is an owner of the given article. Returns FALSE if the user is not an owner.
<?php $article = 17; echo "article $article is "; if(! mgd_is_article_owner($article)) { echo "not "; } echo "owned by you"; ?> |