$caneditposts=(bool)currentusercan('editposts');
//echo $caneditposts."<br/>";
if (!$caneditposts)
die(_('You do not have permission to edit posts.'));
//echo "we got past the permissions logic"."<br/>";
1$caneditposts=(bool)currentusercan('editposts'); 2//echo $caneditposts."<br/>"; 3if (!$caneditposts) 4die(_('You do not have permission to edit posts.')); 5//echo "we got past the permissions logic"."<br/>";