mgd_is_article_owner

(Midgard 1.4.2 'Bifrost')

mgd_is_article_owner -- Check article ownership

Description

int mgd_is_article_owner (int article)

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";
?>