You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ==================== GET USER's EXPLICIT PERMISSSION ==============================
597
-
// get objects that the user has direct access to
598
-
$objects = \DB::select('object_id')
599
-
->from('perm_object_to_user')
600
-
->where('object_type', $object_type)
601
-
->where('user_id', $user_id)
602
-
->where('perm', 'IN', $perms)
603
-
->execute()
604
-
->as_array('object_id', 'object_id');
605
-
}
583
+
->execute()
584
+
->as_array('object_id', 'object_id');
606
585
return$objects;
607
586
}
608
587
}
609
588
589
+
/**
590
+
* Gets an array of object ids that a user has permissions to access EXCLUSIVELY based on an elevated role
591
+
* This requires the user has a role with elevated perms, and that the group rights associated with those perms are present in the perm_role_to_perm table
592
+
* Currently, the role must be Perm::ADMINISTRATOR or Perm::SUPERUSER
Copy file name to clipboardExpand all lines: fuel/app/config/development/materia.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
<?php
2
2
3
+
// since this is the dev config - the assumption is that assets are located in public/dist. NGINX will reroute *.js and *.css requests for public/ to public/dist/
0 commit comments