Changesets can be listed by changeset number.
The Git repository is here.
Changeset 123
Used new accessor functions in HubSsoLib 0.1.1 (Changeset #121).
Fixes a couple of '".id" should have read ".user_id"' bugs that
crept in when the DRb server implementation was introduced.
- Comitted by: adh
- Date: Sunday October 29 09:22:22 2006 (over 18 years ago)
Affected files:
rool/rails/hub/trunk/app/controllers/account_controller.rb:
prev. | current | |
hubssolib_set_last_used(Time.now.utc) | ||
privileges = hubssolib_get_user_roles.to_human_s.downcase | ||
49 | | |
49 | hubssolib_set_flash(:notice, "Logged in successfully. Welcome, #{hubssolib_get_user_name}. You have #{privileges} privileges.") | |
hubssolib_redirect_back_or_default(:controller => 'tasks', :action => nil) | ||
else | ||
flash[:alert] = 'Incorrect e-mail address or password.' | ||
... | ... | |
# Did I update my own roles? | ||
284 | | |
284 | if (hubssolib_get_user_id == @user.id) | |
self.hubssolib_current_user = from_real_user(@user) | ||
end | ||
... | ... | |
def destroy | ||
user = User.find(params[:id]) | ||
296 | | |
296 | if (hubssolib_get_user_id == user.id) | |
flash[:alert] = 'Please use the normal control panel to delete your own account.' | ||
elsif (user.roles.to_authenticated_roles.include?(:admin)) | ||
flash[:alert] = 'You cannot destroy an administrator account from here! ' << |