Let maintainers and super maintainers process the application versions and images submitted for applications they maintain

This commit is contained in:
Chris Morgan
2005-08-05 22:07:41 +00:00
committed by WineHQ
parent 415ddb3654
commit 639dd77d15
13 changed files with 290 additions and 72 deletions

View File

@@ -248,6 +248,12 @@ class Version {
*/
function delete($bSilent=false)
{
/* is the current user allowed to delete this version? */
if(!$_SESSION['current']->hasPriv("admin") && !$_SESSION['current']->hasAppVersionModifyPermission($iVersionId))
{
return;
}
/* remove all of the items this version contains */
foreach($this->aNotesIds as $iNoteId)
{
@@ -303,6 +309,12 @@ class Version {
*/
function unQueue()
{
/* is the current user allowed to delete this version? */
if(!$_SESSION['current']->hasPriv("admin") && !$_SESSION['current']->hasAppVersionModifyPermission($iVersionId))
{
return;
}
// If we are not in the queue, we can't move the version out of the queue.
if(!$this->bQueued)
return false;