def toggle_readonly
        begin
            share = Share.find params[:id]
            share.rdonly = ! share.rdonly
            share.save