Added permission checks for Buildings and terminations
This commit is contained in:
@@ -9,7 +9,7 @@ class NetworksectionController extends mfBaseController {
|
||||
$this->me = $me;
|
||||
$this->layout()->set("me",$me);
|
||||
|
||||
if(!$me->isAdmin()) {
|
||||
if(!$me->is(["Admin", "netowner", "pipeplanner"])) {
|
||||
$this->redirect("Dashboard");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user