If you just want to have only admins and news editors edit the page, do this:
PHP Code:
if($isloggedin == "yes"){
$mygroup = getgroup();
if($cancp == "yes" or $mygroup = 5){
// Do your stuff here
}
}
In this line:
PHP Code:
if($cancp == "yes" or $mygroup = 5){
Change 5 to the numerical ID of the group you want to have access to the page. This will allow all users who can access the ACP as well as members of this group to access the page. :)