Skip to content

Commit

Permalink
FIX permission denied in canvas grade sync page
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ionparticle committed Jan 27, 2025
1 parent bddc00d commit a1db12b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions app/config/sql/ipeer.sql
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,10 @@ INSERT INTO acos (id, parent_id, model, foreign_key, alias, lft, rght) VALUES
(331,300,NULL,NULL,'viewusername',660,661),
(332,300,NULL,NULL,'submitstudenteval',662,663),
(333,84,NULL,NULL,'export',193,194),
(334,84,NULL,NULL,'import',195,196);
(334,84,NULL,NULL,'import',195,196),
(335,16,NULL,NULL,'syncCanvasEnrollment',NULL,NULL),
(336,112,NULL,NULL,'syncCanvas',NULL,NULL),
(337,64,NULL,NULL,'exportCanvas',NULL,NULL);

-- --------------------------------------------------------

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

-- --------------------------------------------------------

Expand Down
8 changes: 6 additions & 2 deletions app/config/sql/ipeer_samples_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,10 @@ INSERT INTO acos (id, parent_id, model, foreign_key, alias, lft, rght) VALUES
(331,300,NULL,NULL,'viewusername',660,661),
(332,300,NULL,NULL,'submitstudenteval',662,663),
(333,84,NULL,NULL,'export',193,194),
(334,84,NULL,NULL,'import',195,196);
(334,84,NULL,NULL,'import',195,196),
(335,16,NULL,NULL,'syncCanvasEnrollment',NULL,NULL),
(336,112,NULL,NULL,'syncCanvas',NULL,NULL),
(337,64,NULL,NULL,'exportCanvas',NULL,NULL);

-- --------------------------------------------------------

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

-- --------------------------------------------------------

Expand Down

0 comments on commit a1db12b

Please sign in to comment.