Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: Disable textarea if user lacks permission
- Loading branch information
1 parent
6841bff
commit 82f6e69
Showing
2 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -397,6 +397,10 @@ public function editdefaultvalues($surveyid, $gid, $qid) | |
$aData['sidemenu']['explorer']['state'] = true; | ||
$aData['sidemenu']['explorer']['gid'] = (isset($gid)) ? $gid : false; | ||
$aData['sidemenu']['explorer']['qid'] = (isset($qid)) ? $qid : false; | ||
$aData['hasUpdatePermission'] = | ||
Permission::model()->hasSurveyPermission($iSurveyID, 'surveycontent', 'update') ? | ||
'' : | ||
'disabled="disabled" readonly="readonly"'; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
olleharstedt
Author
Contributor
|
||
|
||
$this->_renderWrappedTemplate('survey/Question', 'editdefaultvalues_view', $aData); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 comment
on commit 82f6e69
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think i make iot for develop, but master is OK, thanks !
Why disable + readonly ? I like readonly : allow copy/pasting, but disable is OK too