dpinney / omf

The Open Modeling Framework for smart grid cost-benefit analysis.
https://omf.coop
GNU General Public License v2.0
112 stars 60 forks source link

When admin re-runs public feeders they should rerun the pub version not spawn a new admin version. #249

Closed dpinney closed 10 years ago

cshjin commented 10 years ago

988240673ce7d8e9243cb9e65891d9d38ba0d221 fixed it.

dpinney commented 10 years ago

Nevermind that deleted comment, I figured it out.

dpinney commented 10 years ago

Actually, I'd prefer to do:

if  User.cu() == "admin" and pData["user"] == "public":
   pData["user"] = "public"
else:
   pData["user"] = User.cu()

That way we are sure only admin can ever re-run public feeders.

cshjin commented 10 years ago

We do not provide the rerun web interface for other users. Okay, I will change it into the secure one.

dpinney commented 10 years ago

Thanks. We shouldn't rely on the fronted for security.