I want to be able to show all LS users the total # of surveys currently in an LS instance.
I would have figured that this would return that value:
Code:
$currentSurveysQuery="SELECT count(*) FROM {{surveys}}";$currentSurveys= Yii::app()->db->createCommand($currentSurveysQuery)->queryAll();
But if I log in as a new user who can only create surveys (and not see all surveys), the above query returns "0" -- even if there are 50 surveys in the LS instance.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.