Allow users to view apps with no id
This commit is contained in:
committed by
Chris Morgan
parent
d5b029fc61
commit
0c47bd87a3
@@ -632,6 +632,10 @@ class User {
|
|||||||
/* application permissions */
|
/* application permissions */
|
||||||
function canViewApplication($oApp)
|
function canViewApplication($oApp)
|
||||||
{
|
{
|
||||||
|
/* If there is no id the app is not in the database, which means the current user must have created the object */
|
||||||
|
if(!$oApp->iAppId)
|
||||||
|
return true;
|
||||||
|
|
||||||
/* if the application isn't queued */
|
/* if the application isn't queued */
|
||||||
if($oApp->sQueued == 'false')
|
if($oApp->sQueued == 'false')
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user