mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-09 06:55:54 +01:00
(refs #464)Add Scaladoc
This commit is contained in:
@@ -1,11 +1,36 @@
|
||||
package plugin
|
||||
|
||||
/**
|
||||
* Defines enum case classes to specify permission for actions which is provided by plugin.
|
||||
*/
|
||||
object Security {
|
||||
|
||||
sealed trait Security
|
||||
|
||||
/**
|
||||
* All users and guests
|
||||
*/
|
||||
case class All() extends Security
|
||||
|
||||
/**
|
||||
* Only signed-in users
|
||||
*/
|
||||
case class Login() extends Security
|
||||
|
||||
/**
|
||||
* Only repository owner and collaborators
|
||||
*/
|
||||
case class Member() extends Security
|
||||
|
||||
/**
|
||||
* Only repository owner and managers of group repository
|
||||
*/
|
||||
case class Owner() extends Security
|
||||
|
||||
/**
|
||||
* Only administrators
|
||||
*/
|
||||
case class Admin() extends Security
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user