Skip to content

Comment on How github was hackedparent

Comments

Yes it is. But even ignoring that, Rails 3.2 added a feature to do something similar: roles. You can do things like this in the model:

    attr_accessible :user_id, :on => :admin
And in controllers (or anywhere, really):
    @something.update_attributes(params[:something], :as => :admin)
It's naive and it's not exactly an ACL or anything but it's a way to indicate the context at a basic level.

Sadly, people seem to be running around like headless chickens trying to scotch tape trash bags over a broken window instead of learning how to replace the glass.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.