search for: acceptable_uid

Displaying 1 result from an estimated 1 matches for "acceptable_uid".

Did you mean: acceptable_uids
2008 Mar 12
3
a way to restrict who can install your app, for private testing
...is something I just cooked up to allow me to restrict temporarily who can access my app, based on an array of UIDs. It''s messy but works. Put at the top of your controller, at the end of your filters. # This filter is only until we open everything up before_filter do |c| acceptable_uids = [''594180515'', ''122612996''] unless acceptable_uids.include? c.get_facebook_session.user.uid RAILS_DEFAULT_LOGGER.debug "my UID = " + c.get_facebook_session.user.uid + " but acceptable_uids = " + acceptable_uids.to_s ra...