Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
r1116
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Scott Merrill  
View profile  
 More options Nov 24 2007, 12:00 pm
From: Scott Merrill <ski...@skippy.net>
Date: Sat, 24 Nov 2007 12:00:58 -0500
Local: Sat, Nov 24 2007 12:00 pm
Subject: Re: r1116

codesite-nore...@google.com wrote:
> (ALL users get
> session records, regardless of whether they're logged in.)  The User
> class now does not use its own cookies to handle logged-in-ness, but
> instead uses the PHP $_SESSION['user_id'] variable.  Added
> Session::set_userid() and Session::clear_userid() for the purpose of
> storing that information in the settings table to do things like query
> for logged-in users.

A thought occurred to me on one possibly very cool use for the new
session stuff:
        built-in sudo functionality

If the user has sufficient privilege, they can "become" a different user
on the site.  User::identify() would query the $_SESSION['sudo'] for the
effective user ID, and would use that when returning a user object.
User::can() would similarly honor $_SESSION['sudo'] when determining
what you can and cannot do.

In this way, an admin can verify the configuration / settings for
particular users without having to log out and back in multiple times.

We would need to update the admin interface in a number of places to
make this work properly without being too confusing.  For example, the
"logout" link at the bottom would need to indicate that logging out
would be to exit the sudo session.  Maybe a status indicator in the top
admin bar would be helpful to show who you are logged in as, as well as
any sudo user you're currently operating as.

Thoughts?

--
GPG 9CFA4B35 | ski...@skippy.net | http://skippy.net/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Davis  
View profile  
 More options Nov 24 2007, 5:45 pm
From: Christopher Davis <c...@chrisjdavis.org>
Date: Sat, 24 Nov 2007 17:45:35 -0500
Local: Sat, Nov 24 2007 5:45 pm
Subject: Re: [habari-dev] Re: r1116
That would be a very cool feature for using Habari in a corporate  
environment.  I say lets explore it.

Chris
On Nov 24, 2007, at 12:00 PM, Scott Merrill wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Mohn  
View profile  
 More options Nov 24 2007, 5:57 pm
From: "Christian Mohn" <h0b...@gmail.com>
Date: Sat, 24 Nov 2007 23:57:41 +0100
Local: Sat, Nov 24 2007 5:57 pm
Subject: RE: [habari-dev] Re: r1116
Another nice feature to add to this, is a to also be able to be become a
guest user. Eg. see the site as a anonymous user, without having to log out
to check if something looks different when browsing it.

Otherwise it's a great idea!

Christian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael C. Harris  
View profile  
 More options Nov 24 2007, 6:17 pm
From: "Michael C. Harris" <michael.twof...@gmail.com>
Date: Sun, 25 Nov 2007 10:17:44 +1100
Local: Sat, Nov 24 2007 6:17 pm
Subject: Re: [habari-dev] Re: r1116

On Sat, Nov 24, 2007 at 12:00:58PM -0500, Scott Merrill wrote:

> A thought occurred to me on one possibly very cool use for the new
> session stuff:
>    built-in sudo functionality

Interesting thought. Moodle (learning management system) does this,
and it's an incredibly useful feature.

cheers, Michael


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Merrill  
View profile  
 More options Nov 24 2007, 6:19 pm
From: Scott Merrill <ski...@skippy.net>
Date: Sat, 24 Nov 2007 18:19:10 -0500
Local: Sat, Nov 24 2007 6:19 pm
Subject: Re: [habari-dev] Re: r1116

Christian Mohn wrote:
> Another nice feature to add to this, is a to also be able to be become a
> guest user. Eg. see the site as a anonymous user, without having to log out
> to check if something looks different when browsing it.

The way I do this is to use a different browser:  I log into sites using
Firefox, and use Epiphany to see what the anonymous users will see.  I
suspect you could easily do the same with MSIE and Firefox on Windows.

--
GPG 9CFA4B35 | ski...@skippy.net | http://skippy.net/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Mohn  
View profile  
 More options Nov 24 2007, 6:38 pm
From: "Christian Mohn" <h0b...@gmail.com>
Date: Sun, 25 Nov 2007 00:38:05 +0100
Local: Sat, Nov 24 2007 6:38 pm
Subject: RE: [habari-dev] Re: r1116
Sure, and I do that, but a system like your sudo proposal could just as well
be used? You could even make a link available, when logged in as admin, that
switches between Guest and Admin views?

Christian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »