[Seaside] authecation question

James Foster Smalltalk at JGFoster.net
Mon Sep 1 23:20:53 UTC 2014


8.a. on page 10 describes how to restrict some features to logged-in users and includes the following code:

	self session user notNil ifTrue: [ …

Modify this code as follows:

	self session user hasRightsToThisPartOfTheApp ifTrue: [ …

Now you have given some user rights to some parts of the app!

James

On Sep 1, 2014, at 8:46 AM, Roelof Wobben <r.wobben at home.nl> wrote:

> Thanks,
> 
> I found it but I do not give a answer to the question how I can give some user rights to some parts of the app.
> 
> Roelof
> 
> 
> 
> James Foster schreef op 1-9-2014 17:19:
>> See chapter 12 in http://seaside.gemtalksystems.com/tutorial.html for a somewhat dated example of how to add login capability to a Seaside application in Pharo.
>> 
>> James
>> 
>> On Sep 1, 2014, at 7:07 AM, Roelof Wobben <r.wobben at home.nl> wrote:
>> 
>>> Hello,
>>> 
>>> I want to try to make a financial app for a toy library.
>>> 
>>> First problem I have is how to do this ?
>>> 
>>> I want to have a admin user which is the only one who can provide a login name and password for users.
>>> After that the users can log in.
>>> 
>>> Also I want to hide things from them so only the admin user can do that particular task.
>>> 
>>> Can this be done with Cincom smalltalk ?
>>> 
>>> Roelof
>>> 
>>> _______________________________________________
>>> seaside mailing list
>>> seaside at lists.squeakfoundation.org
>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>> 
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>> 
> 
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> 



More information about the seaside mailing list