[pLog-svn] Permissions in LT 1.2

Oscar Renalias oscar at renalias.net
Sun Nov 5 21:11:15 GMT 2006


On 5 Nov 2006, at 22:50, Reto Hugi wrote:

> On 05.11.2006 21:01, Oscar Renalias wrote:
>>> this means, that we need to switch to the created user and
>>> activeate the
>>> login. And I don't get why we have that checkbox as we have a user
>>> status (active, disabled and unconfirmed) for that.
>>> Oh, and what exactly is "Allow access to this blog" doing?
>>
>> If you want to temporarily disallow a user from logging into let's
>> say your blog, then instead of removing all permissions and adding
>> them again, you can always remove the "allow access to this blog"
>> permission while keeping all others. This permission effectively
>> allows/disallows a user to log into a blog no matter what other
>> permissions he might have.
>
> ok, but then I don't understand why this option is only available  
> under
> administration->Site Users and not Control Centre->Blog Users.  
> Shouldnt'
> this be something the blog owner can change? ("this blog" would make
> more sense then, too)

It obviously makes sense as you say but I don't understand, the  
permission is already under Control Centre->Blog Users :-)

Look for "Allow access to this blog" and if it doesn't appear, make  
sure that "blog_access" is in the lt_permissions table and that you  
clean the contents of the tmp/ folder before trying again.

>
>> Can you post the exact steps needed to reproduce this? It might be
>> just an issue with a class not being included at the right moment.
>
> Steps I do:
> 1. Create user "testuser" and add it to blog "Test Blog" (owned by  
> admin
> user)
> 2. "edit user" and check "Allow access to this blog" "user is  
> allowed to
> log in"
> 3. go to BlogUsers->testuser check permission for "add new posts"
> 4. logout
> 5. login as testuser
> 6. go the the only option "new post"
> 7. see the error:
> Fatal error: UserPermission::getPermissionName() [<a
> href='function.getPermissionName'>function.getPermissionName</a>]: The
> script tried to execute a method or access a property of an incomplete
> object. Please ensure that the class definition &quot;Permission&quot;
> of the object you are trying to operate on was loaded _before_
> unserialize() gets called or provide a __autoload() function to  
> load the
> class definition in
> p:\server2go\htdocs\lt\class\dao\userpermission.class.php on line 92

Thanks, I will take a look.


More information about the pLog-svn mailing list