Remove isMaintainer() and isSuperMaintainer and instead use the user
classes is_maintainer() and is_super_maintainer.
This commit is contained in:
@@ -39,14 +39,14 @@ $versionId = strip_tags($_POST['versionId']);
|
||||
$superMaintainer = strip_tags($_POST['superMaintainer']);
|
||||
|
||||
/* if the user is already a maintainer don't add them again */
|
||||
if(isMaintainer($appId, $versionId))
|
||||
if($_SESSION['current']->is_maintainer($appId, $versionId))
|
||||
{
|
||||
echo "You are already a maintainer of this app!";
|
||||
exit;
|
||||
}
|
||||
|
||||
/* if this user is a super maintainer they maintain all of the versionIds of this appId */
|
||||
if(isSuperMaintainer($appId))
|
||||
if($_SESSION['current']->is_super_maintainer($appId))
|
||||
{
|
||||
echo "You are already a supermaintainer of the whole application family!";
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user