Skip to content

Commit a1db12b

Browse files
committed
FIX permission denied in canvas grade sync page
On a fresh install, even superadmins will get permission denied on the Canvas grade sync page because the controller action is not in the permissions list. I've fixed the ipeer.sql and ipeer_samples_data.sql so they contain the additional permission lines.
1 parent bddc00d commit a1db12b

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

app/config/sql/ipeer.sql

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,10 @@ INSERT INTO acos (id, parent_id, model, foreign_key, alias, lft, rght) VALUES
369369
(331,300,NULL,NULL,'viewusername',660,661),
370370
(332,300,NULL,NULL,'submitstudenteval',662,663),
371371
(333,84,NULL,NULL,'export',193,194),
372-
(334,84,NULL,NULL,'import',195,196);
372+
(334,84,NULL,NULL,'import',195,196),
373+
(335,16,NULL,NULL,'syncCanvasEnrollment',NULL,NULL),
374+
(336,112,NULL,NULL,'syncCanvas',NULL,NULL),
375+
(337,64,NULL,NULL,'exportCanvas',NULL,NULL);
373376

374377
-- --------------------------------------------------------
375378

@@ -552,7 +555,8 @@ INSERT INTO aros_acos (id, aro_id, aco_id, _create, _read, _update, _delete) VAL
552555
(118,5,300,'-1','-1','-1','-1'),
553556
(119,5,327,'1','1','1','1'),
554557
(120,5,328,'-1','-1','-1','-1'),
555-
(121,5,329,'-1','-1','-1','-1');
558+
(121,5,329,'-1','-1','-1','-1'),
559+
(122,2,309,'-1','-1','-1','-1');
556560

557561
-- --------------------------------------------------------
558562

app/config/sql/ipeer_samples_data.sql

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,10 @@ INSERT INTO acos (id, parent_id, model, foreign_key, alias, lft, rght) VALUES
369369
(331,300,NULL,NULL,'viewusername',660,661),
370370
(332,300,NULL,NULL,'submitstudenteval',662,663),
371371
(333,84,NULL,NULL,'export',193,194),
372-
(334,84,NULL,NULL,'import',195,196);
372+
(334,84,NULL,NULL,'import',195,196),
373+
(335,16,NULL,NULL,'syncCanvasEnrollment',NULL,NULL),
374+
(336,112,NULL,NULL,'syncCanvas',NULL,NULL),
375+
(337,64,NULL,NULL,'exportCanvas',NULL,NULL);
373376

374377
-- --------------------------------------------------------
375378

@@ -552,7 +555,8 @@ INSERT INTO aros_acos (id, aro_id, aco_id, _create, _read, _update, _delete) VAL
552555
(118,5,300,'-1','-1','-1','-1'),
553556
(119,5,327,'1','1','1','1'),
554557
(120,5,328,'-1','-1','-1','-1'),
555-
(121,5,329,'-1','-1','-1','-1');
558+
(121,5,329,'-1','-1','-1','-1'),
559+
(122,2,309,'-1','-1','-1','-1');
556560

557561
-- --------------------------------------------------------
558562

0 commit comments

Comments
 (0)