Commit a890d2c7d3d57585544bb17bfa19ad06fea2b417
1 parent
dc09225b
- actually regen on permission change.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4808 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
4 additions
and
0 deletions
plugins/ktcore/admin/workflows.php
| @@ -972,6 +972,8 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { | @@ -972,6 +972,8 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { | ||
| 972 | // FIXME implement: | 972 | // FIXME implement: |
| 973 | // $this->_regenStatePermissionLookups($oState); | 973 | // $this->_regenStatePermissionLookups($oState); |
| 974 | 974 | ||
| 975 | + KTPermissionUtil::updatePermissionLookupForState($oState); | ||
| 976 | + | ||
| 975 | $this->successRedirectTo('editState', _('Permissions for workflow assigned'),sprintf('fStateId=%d&fWorkflowId=%d',$oState->getId(),$oWorkflow->getId())); | 977 | $this->successRedirectTo('editState', _('Permissions for workflow assigned'),sprintf('fStateId=%d&fWorkflowId=%d',$oState->getId(),$oWorkflow->getId())); |
| 976 | } | 978 | } |
| 977 | 979 | ||
| @@ -1000,6 +1002,8 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { | @@ -1000,6 +1002,8 @@ class KTWorkflowDispatcher extends KTAdminDispatcher { | ||
| 1000 | if (PEAR::isError($res)) { $this->errorRedirectTo('editState', _('Failed to allocate as specified.'), $exitQS); } | 1002 | if (PEAR::isError($res)) { $this->errorRedirectTo('editState', _('Failed to allocate as specified.'), $exitQS); } |
| 1001 | } | 1003 | } |
| 1002 | 1004 | ||
| 1005 | + KTPermissionUtil::updatePermissionLookupForState($oState); | ||
| 1006 | + | ||
| 1003 | $this->successRedirectTo('editState', _('Permissions Allocated.'), $exitQS); | 1007 | $this->successRedirectTo('editState', _('Permissions Allocated.'), $exitQS); |
| 1004 | } | 1008 | } |
| 1005 | 1009 |