Implemented gallery restricted access