Ticket #9 (new defect)

Opened 2 years ago

Last modified 5 days ago

sportguy

Reported by: anonymous Assigned to: somebody
Priority: major Component: theme-django
Version: 0.1 Keywords: 47081937
Cc: painting

Description

The authentication system needs to be reworked. Having auto-admin do the authorization at all is bad. Having auto-admin keep a user object in the session is double-bad (breaks app if user model is updated and sessions aren't cleared).

The model that Comatose uses is pretty clean. Have an overridable 'authorize' method that can be set in environment.rb. Let the user handle their own authorization (bounce to their login page, etc).

Here's an example comatose setup in environment.rb:

class ComatoseAdminController

  # Overidde the authorize check... It runs as a before_filter
  # use the standard STIRR auth check
  def authorize
    load_user
    return false unless authenticated?
    unless (@current_user.admin? || @current_user.manager?)
      return false
    end
    true
  end

  # return the loaded user name (assumes we've been authenticated already)
  def get_author
    return @current_user.first_name + " " + @current_user.last_name if @current_user
    "[unknown]"
  end

end

Comatose::Options.admin_title = "The amazing auto-admin"
Comatose::Options.admin_sub_title = "density is good"

Comatose::Options.default_tree_level = 3
Comatose::Options.default_filter = 'Textile'
#Comatose::Options.default_processor = :liquid
Comatose::Options.default_processor = :erb

Attachments

Change History

07/05/2007 08:27:29 PM changed by anonymous

  • cc set to None.
  • component changed from core to test-harness.
  • summary changed from authentication system needs overhaul to None.
  • priority changed from major to minor.
  • version set to 0.1.
  • keywords set to None.
  • type changed from defect to task.

07/05/2007 08:27:48 PM changed by anonymous

  • priority changed from minor to trivial.
  • component changed from test-harness to core.

07/05/2007 10:25:33 PM changed by anonymous

  • priority changed from trivial to minor.
  • version deleted.
  • component changed from core to test-harness.

07/05/2007 10:25:56 PM changed by anonymous

  • priority changed from minor to critical.
  • version set to 0.1.

07/05/2007 11:38:10 PM changed by anonymous

  • component changed from test-harness to theme-django.

07/05/2007 11:38:41 PM changed by anonymous

  • priority changed from critical to trivial.
  • type changed from task to defect.
  • version deleted.
  • component changed from theme-django to core.

07/07/2007 09:10:31 AM changed by anonymous

  • cc changed from None to painting.
  • component changed from core to theme-django.
  • summary changed from None to painting.
  • version set to 0.1.
  • keywords changed from None to painting.
  • type changed from defect to enhancement.

07/07/2007 10:18:53 AM changed by anonymous

  • type changed from enhancement to defect.
  • version deleted.
  • component changed from theme-django to core.

07/07/2007 10:19:14 AM changed by anonymous

  • priority changed from trivial to blocker.
  • version set to edge.
  • type changed from defect to task.

07/08/2007 12:30:13 AM changed by anonymous

  • component changed from core to theme-django.
  • summary changed from painting to wine.
  • priority changed from blocker to critical.
  • version deleted.
  • keywords changed from painting to wine.
  • type changed from task to defect.

07/08/2007 12:30:38 AM changed by anonymous

  • priority changed from critical to minor.
  • type changed from defect to task.
  • version set to edge.
  • component changed from theme-django to core.

07/09/2007 12:42:05 AM changed by anonymous

  • priority changed from minor to critical.
  • type changed from task to defect.
  • component changed from core to test-harness.

07/11/2007 06:38:47 PM changed by anonymous

  • component changed from test-harness to core.
  • summary changed from wine to game.
  • priority changed from critical to minor.
  • version changed from edge to 0.1.
  • keywords changed from wine to game.
  • type changed from defect to task.

http://corp.cwsurf.de/game/adult-game/ - Adult game - Free Sex Games - Hot Sex Games - Adult Sex Games. http://corp.cwsurf.de/game/download-free-game/ - Arcade download free galaga game - Free download games, Download shareware games.

07/18/2007 06:52:31 AM changed by Viagra

  • priority changed from minor to critical.
  • version changed from 0.1 to edge.

07/21/2007 12:20:58 PM changed by Viagra

  • priority changed from critical to major.
  • type changed from task to defect.

Generic viagra online <a href="http://www.viagrageneric.org/">generic viagra</a> http://www.viagrageneric.org/ [url=http://www.viagrageneric.org/]generic viagra/url

07/21/2007 12:25:13 PM changed by Viagra

  • type changed from defect to enhancement.

07/21/2007 12:35:08 PM changed by Viagra

  • priority changed from major to blocker.
  • type changed from enhancement to task.
  • component changed from core to theme-django.

07/22/2007 03:58:45 AM changed by Viagra

  • priority changed from minor to critical.
  • version deleted.
  • type changed from enhancement to task.

07/22/2007 04:45:36 AM changed by Viagra

  • priority changed from critical to trivial.
  • version set to edge.
  • type changed from task to enhancement.

07/22/2007 04:49:16 AM changed by Viagra

  • priority changed from trivial to major.
  • version changed from edge to 0.1.
  • component changed from theme-django to core.

07/24/2007 06:10:23 AM changed by Viagra

  • priority changed from major to minor.
  • type changed from enhancement to defect.
  • version changed from 0.1 to edge.
  • component changed from core to theme-django.

Generic viagra online <a href="http://www.viagrageneric.org/">generic viagra</a> http://www.viagrageneric.org/ [url=http://www.viagrageneric.org/]generic viagra/url

07/24/2007 06:11:30 AM changed by Viagra

  • priority changed from minor to trivial.
  • type changed from defect to enhancement.
  • version deleted.
  • component changed from theme-django to test-harness.

07/24/2007 07:44:52 AM changed by Viagra

  • priority changed from trivial to minor.
  • version changed from edge to 0.1.
  • component changed from core to test-harness.

Buy viagra online <a href="http://www.miamiherald.com/cgi-bin/mi/overture/overture.pl?Keywords= viagra site:viagrabest.info">buy viagra</a> http://www.miamiherald.com/cgi-bin/mi/overture/overture.pl?Keywords= viagra site:viagrabest.info [url=http://www.miamiherald.com/cgi-bin/mi/overture/overture.pl?Keywords= viagra site:viagrabest.info]buy viagra/url

07/24/2007 07:53:36 AM changed by Viagra

  • priority changed from minor to blocker.
  • component changed from test-harness to theme-django.

07/24/2007 08:25:20 AM changed by Viagra

  • type changed from task to defect.
  • version deleted.
  • component changed from test-harness to theme-django.

07/24/2007 04:38:04 PM changed by Viagra

  • priority changed from minor to blocker.
  • type changed from defect to task.
  • version set to 0.1.
  • component changed from theme-django to test-harness.

Buy viagra online <a href="http://www.theusapills.com/">buy viagra online</a> http://www.theusapills.com/ [url=http://www.theusapills.com/]buy viagra online/url

07/26/2007 08:00:31 AM changed by Viagra

  • priority changed from critical to major.
  • type changed from task to defect.
  • version changed from edge to 0.1.
  • component changed from theme-django to test-harness.

Generic viagra online <a href="http://www.viagrageneric.org/">generic viagra</a> http://www.viagrageneric.org/ [url=http://www.viagrageneric.org/]generic viagra/url

07/26/2007 08:03:43 AM changed by Viagra

  • priority changed from major to blocker.
  • version deleted.
  • component changed from test-harness to core.

07/26/2007 08:33:07 AM changed by Viagra

  • priority changed from blocker to minor.
  • type changed from defect to task.
  • version set to 0.1.
  • component changed from core to theme-django.

07/26/2007 08:59:16 AM changed by Viagra

  • priority changed from minor to trivial.
  • type changed from task to enhancement.
  • version changed from 0.1 to edge.
  • component changed from theme-django to core.

07/26/2007 09:01:12 AM changed by Viagra

  • priority changed from trivial to critical.
  • version changed from edge to 0.1.
  • component changed from core to theme-django.

07/26/2007 09:10:22 AM changed by Viagra

  • priority changed from critical to major.
  • version changed from 0.1 to edge.
  • type changed from enhancement to defect.

07/26/2007 10:29:01 PM changed by Viagra

  • version changed from edge to 0.1.
  • component changed from theme-django to core.

07/26/2007 11:07:36 PM changed by Viagra

  • priority changed from major to minor.
  • type changed from defect to enhancement.
  • version changed from 0.1 to edge.
  • component changed from core to test-harness.

07/27/2007 03:14:54 AM changed by Viagra

  • priority changed from minor to critical.
  • version changed from edge to 0.1.
  • type changed from enhancement to defect.

07/27/2007 03:24:06 AM changed by Cialis

  • priority changed from critical to major.
  • type changed from defect to task.
  • component changed from test-harness to core.

07/28/2007 04:50:36 AM changed by Viagra

  • priority changed from major to blocker.
  • type changed from task to defect.
  • version deleted.
  • component changed from core to theme-django.

Generic viagra online <a href="http://www.viagrageneric.org/">generic viagra</a> http://www.viagrageneric.org/ [url=http://www.viagrageneric.org/]generic viagra/url

07/28/2007 05:09:32 AM changed by Viagra

  • priority changed from blocker to trivial.
  • version set to edge.
  • component changed from theme-django to core.

07/28/2007 05:10:58 AM changed by Viagra

  • priority changed from trivial to critical.
  • type changed from defect to enhancement.
  • component changed from core to theme-django.

07/28/2007 05:28:56 AM changed by Viagra

  • priority changed from critical to trivial.
  • type changed from enhancement to defect.
  • component changed from theme-django to core.

07/28/2007 05:31:26 AM changed by Viagra

  • priority changed from trivial to major.
  • type changed from defect to task.
  • version changed from edge to 0.1.
  • component changed from core to theme-django.

07/28/2007 05:32:14 AM changed by Cialis

  • priority changed from major to minor.
  • version changed from 0.1 to edge.
  • type changed from task to enhancement.

07/28/2007 06:30:13 AM changed by Viagra

  • priority changed from minor to trivial.
  • type changed from enhancement to defect.
  • version changed from edge to 0.1.
  • component changed from theme-django to test-harness.

07/28/2007 07:17:54 AM changed by Cialis

  • priority changed from trivial to major.
  • type changed from defect to enhancement.
  • component changed from test-harness to core.

07/28/2007 07:20:07 AM changed by Viagra

  • priority changed from major to blocker.
  • type changed from enhancement to task.
  • component changed from core to test-harness.

07/28/2007 07:27:06 AM changed by Viagra

  • type changed from task to defect.
  • version deleted.
  • component changed from test-harness to theme-django.

07/29/2007 09:00:27 AM changed by Viagra

  • priority changed from blocker to minor.
  • type changed from defect to task.
  • version set to 0.1.
  • component changed from theme-django to test-harness.

07/29/2007 11:17:59 AM changed by Cialis

  • version changed from 0.1 to edge.
  • component changed from test-harness to core.

07/29/2007 11:24:15 AM changed by Viagra

  • priority changed from minor to trivial.
  • version changed from edge to 0.1.
  • component changed from core to test-harness.

07/29/2007 12:36:57 PM changed by Viagra

  • priority changed from trivial to minor.
  • type changed from task to defect.
  • component changed from test-harness to theme-django.

Generic viagra online <a href="http://www.viagrageneric.org/">generic viagra</a> http://www.viagrageneric.org/ [url=http://www.viagrageneric.org/]generic viagra/url

07/30/2007 12:20:40 PM changed by Viagra

  • priority changed from minor to trivial.
  • type changed from defect to enhancement.
  • version changed from 0.1 to edge.
  • component changed from theme-django to test-harness.

07/30/2007 12:24:30 PM changed by Viagra

  • version changed from edge to 0.1.
  • component changed from test-harness to theme-django.

07/30/2007 12:35:51 PM changed by Viagra

  • priority changed from trivial to major.
  • type changed from enhancement to task.
  • version deleted.
  • component changed from theme-django to test-harness.

07/30/2007 12:36:55 PM changed by Viagra

  • priority changed from major to trivial.
  • component changed from test-harness to theme-django.

07/30/2007 12:38:37 PM changed by Levitra

  • priority changed from trivial to major.
  • version set to edge.
  • type changed from task to defect.

07/30/2007 12:40:07 PM changed by Cialis

  • priority changed from major to trivial.
  • type changed from defect to task.
  • version changed from edge to 0.1.
  • component changed from theme-django to core.

07/30/2007 12:41:45 PM changed by Viagra

  • priority changed from trivial to major.
  • type changed from task to enhancement.
  • version changed from 0.1 to edge.
  • component changed from core to test-harness.

07/31/2007 05:59:41 AM changed by Viagra

  • priority changed from major to minor.
  • type changed from enhancement to defect.
  • component changed from test-harness to theme-django.

Generic viagra online <a href="http://www.viagrageneric.org/">generic viagra</a> http://www.viagrageneric.org/ [url=http://www.viagrageneric.org/]generic viagra/url

07/31/2007 08:02:40 AM changed by Cialis

  • type changed from defect to task.

08/01/2007 07:25:33 AM changed by Viagra

  • priority changed from trivial to minor.
  • version changed from edge to 0.1.
  • component changed from theme-django to core.

Generic viagra online <a href="http://www.viagrageneric.org/">generic viagra</a> http://www.viagrageneric.org/ [url=http://www.viagrageneric.org/]generic viagra/url

08/01/2007 04:21:57 PM changed by Viagra

  • priority changed from minor to trivial.
  • version deleted.
  • component changed from core to theme-django.

08/02/2007 02:49:51 AM changed by Viagra

  • version deleted.
  • component changed from test-harness to theme-django.

08/02/2007 02:51:58 AM changed by Viagra

  • priority changed from major to trivial.
  • type changed from defect to task.

08/02/2007 03:25:47 AM changed by Viagra

  • priority changed from trivial to major.
  • type changed from task to enhancement.
  • component changed from theme-django to test-harness.

08/02/2007 09:26:11 AM changed by Viagra

  • priority changed from major to trivial.
  • version set to edge.
  • component changed from test-harness to core.

08/03/2007 02:37:37 AM changed by Viagra

  • priority changed from trivial to blocker.
  • version deleted.

Generic viagra online <a href="http://www.viagrageneric.org/">generic viagra</a> http://www.viagrageneric.org/ [url=http://www.viagrageneric.org/]generic viagra/url

08/03/2007 04:11:05 PM changed by anonymous

  • keywords changed from game to <Key>.
  • priority changed from blocker to trivial.
  • type changed from enhancement to task.
  • summary changed from game to anonymous.

08/03/2007 06:02:54 PM changed by anonymous

  • priority changed from trivial to blocker.
  • component changed from core to theme-django.

08/04/2007 09:03:50 AM changed by Viagra

  • priority changed from blocker to trivial.
  • version set to edge.

Generic viagra online <a href="http://www.viagrageneric.org/">generic viagra</a> http://www.viagrageneric.org/ [url=http://www.viagrageneric.org/]generic viagra/url

08/04/2007 09:47:44 AM changed by Viagra

  • priority changed from trivial to minor.
  • version changed from edge to 0.1.
  • type changed from task to enhancement.

08/04/2007 09:49:54 AM changed by Viagra

  • priority changed from minor to trivial.
  • type changed from enhancement to defect.
  • version deleted.
  • component changed from theme-django to test-harness.

Order viagra online <a href="http://www.viagraorder.org/">order viagra</a> http://www.viagraorder.org/ [url=http://www.viagraorder.org/]order viagra/url

08/06/2007 03:32:51 AM changed by Viagra

  • priority changed from trivial to critical.
  • version set to 0.1.
  • component changed from test-harness to theme-django.

Generic viagra online <a href="http://www.viagrageneric.org/">generic viagra</a> http://www.viagrageneric.org/ [url=http://www.viagrageneric.org/]generic viagra/url

08/06/2007 04:35:04 AM changed by Viagra

  • priority changed from critical to major.
  • type changed from defect to enhancement.
  • version deleted.
  • component changed from theme-django to core.

08/06/2007 06:25:50 AM changed by Viagra

  • priority changed from major to critical.
  • type changed from enhancement to defect.
  • version set to edge.
  • component changed from core to test-harness.

08/06/2007 06:27:09 AM changed by Viagra

  • priority changed from critical to trivial.
  • type changed from defect to task.
  • version changed from edge to 0.1.
  • component changed from test-harness to core.

08/06/2007 04:33:04 PM changed by Viagra

  • priority changed from trivial to major.
  • version changed from 0.1 to edge.

08/06/2007 04:52:02 PM changed by Viagra

  • priority changed from major to blocker.
  • version changed from edge to 0.1.

08/07/2007 02:57:33 AM changed by Cialis

  • priority changed from blocker to minor.
  • type changed from task to defect.
  • version changed from 0.1 to edge.
  • component changed from core to theme-django.

08/07/2007 09:29:29 AM changed by Viagra

  • priority changed from minor to critical.
  • version changed from edge to 0.1.

Generic viagra online <a href="http://www.viagrageneric.org/">generic viagra</a> http://www.viagrageneric.org/ [url=http://www.viagrageneric.org/]generic viagra/url

08/07/2007 09:52:52 AM changed by Viagra

  • priority changed from critical to major.
  • type changed from defect to enhancement.
  • component changed from theme-django to test-harness.

08/07/2007 10:37:21 AM changed by Viagra

  • priority changed from major to critical.
  • type changed from enhancement to defect.
  • version deleted.
  • component changed from test-harness to theme-django.

08/07/2007 10:37:45 AM changed by Viagra

  • type changed from defect to task.
  • component changed from theme-django to core.

08/07/2007 10:38:22 AM changed by Viagra

  • priority changed from critical to minor.
  • type changed from task to defect.

0