Project

General

Profile

« Previous | Next » 

Revision acfbc458

Added by Marek Hulán about 10 years ago

fixes #812 - new permissions model, user group role and nest support, role filters for better granularity

Contributions from:

View differences:

app/controllers/auth_source_ldaps_controller.rb
class AuthSourceLdapsController < ApplicationController
before_filter :find_by_name, :only => [:edit, :update, :destroy]
def index
@auth_source_ldaps = AuthSourceLdap.all
@auth_source_ldaps = resource_base.all
end
def new
......
end
def edit
@auth_source_ldap = AuthSourceLdap.find(params[:id])
end
def update
@auth_source_ldap = AuthSourceLdap.find(params[:id])
# remove from hash :account_password if blank?
params[:auth_source_ldap].except!(:account_password) if params[:auth_source_ldap][:account_password].blank?
if @auth_source_ldap.update_attributes(params[:auth_source_ldap])
......
end
def destroy
@auth_source_ldap = AuthSourceLdap.find(params[:id])
if @auth_source_ldap.destroy
process_success
else
process_error
end
end
end

Also available in: Unified diff