Finer granularity with security permissions
Posted: Thu Oct 09, 2008 6:03 am
I was thinking about the way security currently is implemented in OD last night as I was working on setting up security for the Anesthesia module I am working on.
Currently, it's "all or none", in that permissions are allowed or denied based on who is logged in at any given time. In the Anesthesia module anyways, there is a need to allow or deny certain *actions* on the form (eg., a non-admin should be able to fill out the majority of the form, but should not be allowed to say, delete medications that have already been administered).
I was thinking that it would be helpful if we could implement something that behaves like Linux administrative privileges work. So, in routine day to day operations, employees with non-Administrative security status would be logged in to the workstations. When a security-Admin level privilege is required for an action, OD would present a username/password dialog box in place of what shows currently. This allows the task to be completed, but then leaves the prior state of the form with the rights of the logged in user.
I would think this would be helpful in other areas of OD as well. I know in my practice I often walk up to a workstation and I want to do something simple (such as run a Query). Currently, I have to log out the current user, log myself in, etc. It's a bit tedious.
I've made a working model that I can commit to the repository if you'd like so you can see it in action. If you think it would be a useful addition, I don't think it will be that hard to make it functional...
Currently, it's "all or none", in that permissions are allowed or denied based on who is logged in at any given time. In the Anesthesia module anyways, there is a need to allow or deny certain *actions* on the form (eg., a non-admin should be able to fill out the majority of the form, but should not be allowed to say, delete medications that have already been administered).
I was thinking that it would be helpful if we could implement something that behaves like Linux administrative privileges work. So, in routine day to day operations, employees with non-Administrative security status would be logged in to the workstations. When a security-Admin level privilege is required for an action, OD would present a username/password dialog box in place of what shows currently. This allows the task to be completed, but then leaves the prior state of the form with the rights of the logged in user.
I would think this would be helpful in other areas of OD as well. I know in my practice I often walk up to a workstation and I want to do something simple (such as run a Query). Currently, I have to log out the current user, log myself in, etc. It's a bit tedious.
I've made a working model that I can commit to the repository if you'd like so you can see it in action. If you think it would be a useful addition, I don't think it will be that hard to make it functional...