Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #16843: Label set permission check was too tight
- Loading branch information
Showing
2 changed files
with
12 additions
and
11 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 |
---|---|---|
|
@@ -44,7 +44,7 @@ public function run($sa = null) | |
*/ | ||
public function importlabelresources() | ||
{ | ||
if (!Permission::model()->hasGlobalPermission('labelsets', 'edit')) { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Shnoulle
Collaborator
|
||
if (!Permission::model()->hasGlobalPermission('labelsets', 'update')) { | ||
Yii::app()->session['flashmessage'] = gT('Access denied!'); | ||
$this->getController()->redirect(App()->createUrl("/admin")); | ||
} | ||
|
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
How it can return true ?
LimeSurvey/application/models/Permission.php
Line 564 in ef773af